jScrollpane 2 IE8 Problem - strange behavior when

2019-09-01 14:03发布

http://jscrollpane.kelvinluck.com/fullpage_scroll.html and maybe in other demos, but also in my site :(

on IE8 (maybe also 6/7) and the example "BOTH", drag the bar to a absolute position, top or bottom then click on the div, you`ll get scrolled to the top of the page or the div.. this only happens if you used the mouse click and NOT the wheel

i dont know how to fix this, im using the api.reinitialise(); but apparently thats not the problem

i can post my code if necessary but its even on the demos so..btw you can also see the scroll automoving when you hit alt+tab in the window (in my site)

#

oh, found another user with the same problem jScrollPane strange behavior in Internet Explorer

2条回答
The star\"
2楼-- · 2019-09-01 14:27

This has been fixed in the jScrollPane repository:

https://github.com/vitch/jScrollPane/commit/b80165e3c5cb6d21f9569cacaffd55d33435d23c

Grab the latest code from github or my site and it should all work fine. Thanks for the bug report!

查看更多
可以哭但决不认输i
3楼-- · 2019-09-01 14:35

Maybe it's because you add the jScrollpane-Function. In div inside each other:

$(function() {
    $('.scrollpane_outside').jScrollPane();
});

$(function() {
    $('.scrollpane_inside').jScrollPane();
});

Try:

 $(function() {     $('.scrollpane_outside').jScrollPane(); });

 $('.scrollpane.inside').jScrollPane();
查看更多
登录 后发表回答