jQuery mousemove erratic movements and jumpy results in Firefox

China☆狼群 提交于 2019-12-13 06:20:24

问题


I have the following code:

http://jsfiddle.net/atlchris/CC53T/

What this does is it takes the jQuery UI slider and adds hover & preview support to it. It works great on most browsers but on Firefox for Mac, I am getting jumpy results and erratic movements.

Anyone have any suggestions on how I can make this work better across all browsers?

Tested on Chrome, Firefox, and Safari for Mac.


回答1:


Thanks to another resource, I was able to solve the problem by using the mouseleave event instead of mouseout. The mouselease doesn't fire on internal elements.



来源:https://stackoverflow.com/questions/11507710/jquery-mousemove-erratic-movements-and-jumpy-results-in-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!