jQuery-slimScroll icon indicating copy to clipboard operation
jQuery-slimScroll copied to clipboard

Firefox+Windows: Slimscroll scrolls whole page

Open PinkTiu opened this issue 7 years ago • 4 comments

Hey,

if you hover over the slimscroll content and start to scroll not only the slimscroll content is moving but also the whole page. This feels a bit strange. The expected behavior would be that only the slimscroll content scrolls and the page does not.

This only happens in Firefox running under Windows. In Chrome and Edge this works fine. With Firefox running under macOS or Linux this works fine, too.

You can fix the problem the following: After line 394 in the current source code you have to add target.addEventListener('MozMousePixelScroll', _onWheel, false); This solves the problem for me.

PinkTiu avatar Sep 07 '17 16:09 PinkTiu

ping @rochal

PinkTiu avatar Sep 11 '17 06:09 PinkTiu

Thanks! @PinkTiu , your fix helped me too!

Sh2dow avatar Feb 01 '18 15:02 Sh2dow

@PinkTiu this code works but another problem occur that mouse wheel unexpectedly scroll. If I scroll it will go on bottom in firefox

Even not following wheelStep: 20 (defauklt value) on firefox

Brilliant16 avatar Apr 06 '18 09:04 Brilliant16

https://github.com/rochal/jQuery-slimScroll/blob/cf39d364e777ef95574c30c42d3b85cb2bf325d3/jquery.slimscroll.js#L389-L400

karlcow avatar Aug 14 '18 06:08 karlcow