dhamaso / ufd

Automatically exported from code.google.com/p/ufd
GNU General Public License v2.0
0 stars 0 forks source link

Mouse wheel not working correctly in IE with jQuery 1.10 (and probably 1.7+) #86

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
UFD 0.6 does not scroll correctly when the mouse wheel is used in IE (11) with 
jQuery 1.10 (and probabla jQuery from 1.7 on). Reason is that wheelDelta as a 
non standard property is no longer available at the jQuery Event object. I 
fixed it in my copy:

this.listScroll.bind("DOMMouseScroll mousewheel", function (e)
...
   var normal = e.detail ? e.detail * -1 : (e.originalEvent 
      ? e.originalEvent.wheelDelta / 40 : e.wheelDelta / 40)

Original issue reported on code.google.com by jb.the.s...@gmail.com on 9 Apr 2014 at 9:27

GoogleCodeExporter commented 9 years ago
This happens also in Chrome and firefox. Thanks for the fix!

Original comment by maximili...@gmail.com on 27 Jan 2015 at 10:28