开发者

jScrollPane bug: scrolls vertically with mousewheel fine, but also scrolls 1px horizontally

(FYI, the bug occurs on the official demos as well as my own demos and reacts the same using FF4, Safari4, and IE8 on WinXP.)

  • When I use the jquery.mousewheel.js plugin (v3.0.4) and scroll using the mousewheel, it scrolls vertically as expected. However, it simultaneously scrolls one pixel right-to-left every time the mousewheel is spun. So if I scroll down a couple paragraphs and back up, the left position of div.jspPane can sometimes be -[whatever]px to the left ([whatever] increasing depending on how much I scroll.)
  • When I use the arrow keys on my keyboard to scroll, it scrolls correctly and as expected.
  • It also works correctly when I cl开发者_如何学Goick on one of the a.jspArrow's or anywhere on a div.jspTrack.

The problem only seems to be when using the mousewheel. Can anyone replicate this behavior, or is it just me? Please let me know if you can't and I'll gladly post a video. Thanks!


It's a known issue and there is a suggested fix waiting to be pulled:

https://github.com/vitch/jScrollPane/pull/75

I'll integrate it into the plugin (I'm the author of jScrollPane) ASAP

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜