Animate CC HTML5 easelJS stage.X stage.Y mouse position not consistent between chrome and and firefox
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 comments. 回答1: I see the issue in Chrome as well as