animate-cc

Animate CC HTML5 easelJS stage.X stage.Y mouse position not consistent between chrome and and firefox

会有一股神秘感。 提交于 2019-11-28 12:42:33
问题 I have an application where I need an information card to follow the position of the mouse. I have used the following code: stage.addEventListener("tick", fl_CustomMouseCursor.bind(this)); function fl_CustomMouseCursor() { this.NameTag.x = stage.mouseX; this.NameTag.y = stage.mouseY; } It works perfectly in Firefox but in Chrome and Safari the further away the mouse gets from 0,0 on the canvas the larger the distance between NameTag and the mouse (by a factor of 2). I look forward to any