jScrollpane 2 IE8 Problem - strange behavior when hit top/bottom

三世轮回 提交于 2019-12-11 16:34:16

问题


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


回答1:


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!




回答2:


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();


来源:https://stackoverflow.com/questions/4388058/jscrollpane-2-ie8-problem-strange-behavior-when-hit-top-bottom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!