jscrollpane 水平鼠标滚轮
我未能成功让鼠标滚轮滚动水平 jscrollpane。有没有人有这方面的经验并可以提供一些指导。
在 js 文件的注释中,我看到几个月前的以下更新 // 2.0.0beta3 - (2010-08-27) 水平鼠标滚轮、mwheelIntent、键盘支持、错误修复
我查看了 github 问题页面、Kelvin 的常见问题解答和已知问题页面以及谷歌小组,没有什么让我认为这是不可能的。
如有任何帮助,我们将不胜感激。
I have been unsuccessful getting the mouse wheel to scroll a horizontal jscrollpane. Does anyone have experience with this and can offer some pointers.
In the comments of the js file I see the following update just a couple of months ago
// 2.0.0beta3 - (2010-08-27) Horizontal mousewheel, mwheelIntent, keyboard support, bug fixes
I've looked on the github issues page and Kelvin's FAQ and known issues pages as well as the google group and nothing makes me think this shouldn't be possible.
Any assistance is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可以使用类似以下内容:
将 -50 更改为另一个值来更改滚动的速度和方向。
You could use something like this:
Change -50 to another value to change the speed and direction of the scrolling.
您需要确保您使用的是 2010 年 8 月 27 日之后发布的鼠标滚轮插件版本 - 对鼠标滚轮插件以及 jScrollPane 进行了更改以使其正常工作。在我的演示页面上,我使用的是 3.0.4:
http://jscrollpane.kelvinluck.com/ script/jquery.mousewheel.js
如果这没有帮助,那么您可以在我的演示页面上确认水平滚动是否适合您。在我尝试过的所有具有能够水平滚轮运动的鼠标(或在 MacBook 触控板上)的浏览器中都会出现这种情况。
You need to make sure that you are using a version of the mousewheel plugin which came out after 2010-08-27 - changes were made to the mousewheel plugin as well as to jScrollPane to make it work. On my demo pages I am using 3.0.4:
http://jscrollpane.kelvinluck.com/script/jquery.mousewheel.js
If that doesn't help then can you confirm whether horizontal scrolling works for you on my demo pages. It does in all browsers I have tried which have a mouse capable of horizontal wheel motions (or on a macbook trackpad).
我使用了 Brandon Aaron 的鼠标滚轮检测插件:
http://brandonaaron.net/code/mousewheel/demos
它在 FF、Opera、 Safari、Chrome、IE8+。
I've used a mousewheel detection plugin by Brandon Aaron:
http://brandonaaron.net/code/mousewheel/demos
It works well in FF, Opera, Safari, Chrome, IE8+.
我在 1.5 年前就使用过以下链接,它确实有效,如果您有任何疑问,请告诉我。
i have used the below link 1.5 yeears back and it worked for sure , please let me know if you have any doubts.
这在我的网站上完美运行。
尝试。
This works on my site perfectly.
Try.