问题
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