wieringen / tinyscrollbar

A lightweight cross browser javascript scrollbar.
http://baijs.com/tinyscrollbar
Other
398 stars 203 forks source link

Wheel event doesnt work on IE11 with horizontell scroll #40

Closed iamrane closed 9 years ago

iamrane commented 9 years ago

Wheel event doesn't work on IE11 with horizontell scroll, but it works on vertical scroll. Tested on the demo scroll, same thing there.

iamrane commented 9 years ago

Ahh maybe this is because its not like that in a native scroll. But it strange that it works in chrome thou.

iamrane commented 9 years ago

I kind of fix this for ie11, by always using deltaY. But I guess it will break if the mouse has a X and Y scroll

iamrane commented 9 years ago

wheelSpeedDelta = -(evt[deltaDir] || evt.detail || (-1 / 3 * evt.wheelDelta) || evt['deltaY']) / 40;

I guess did the trick

SerkanSipahi commented 9 years ago

@iamrane please make a pullrequest :)

wieringen commented 9 years ago

Fixed it.