jScrollPane bug:用鼠标滚轮可以很好地垂直滚动,但也可以水平滚动 1px
(仅供参考,该错误发生在官方演示以及我自己的演示上,并且反应相同在 WinXP 上使用 FF4、Safari4 和 IE8。)
- 当我使用 jquery.mousewheel.js 插件 (v3.0.4) 并使用鼠标滚轮滚动时,它会按预期垂直滚动。但是,每次旋转鼠标滚轮时,它都会同时从右向左滚动一个像素。因此,如果我向下滚动几个段落并向上滚动,div.jspPane 的左侧位置有时可能会向左移动 -[whatever]px([whatever] 根据我滚动的程度而增加。)
- 当我在我的键盘滚动,它滚动正确且符合预期。
- 当我单击 a.jspArrow 之一或 div.jspTrack 上的任何位置时,它也可以正常工作。
问题似乎只出现在使用鼠标滚轮时。任何人都可以复制这种行为,还是只有我一个人?如果不能,请告诉我,我很乐意发布视频。谢谢!
(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 click 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个已知问题,有一个建议修复等待拉取:
https://github.com/ vitch/jScrollPane/pull/75
我会尽快将其集成到插件中(我是 jScrollPane 的作者)
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