mac 魔术鼠标在 firefox 6 中水平滑动/滚动问题
我已将 overflow-x:hidden
添加到我的 css html 标记中,以隐藏浮动到左侧的幻灯片,每张幻灯片都会填充整个窗口。然后使用导航访问这些幻灯片,这在所有浏览器中都可以很好地隐藏水平滚动。
我现在遇到了一个问题,即使水平滚动条被隐藏,隐藏的页面也可以使用魔术垫滑动/滚动来滚动。
是否可以使用特定的 webkit css 属性或添加 javascript 来禁用此功能?
我看过一些帖子,人们指示用户通过终端等禁用滑动/滚动,但这不是我想要的。
到目前为止,我发现这个问题只发生在 Firefox 6 for mac 中。
谢谢 凯尔
I have added overflow-x: hidden
to my css html tag in order to hide the slides that are floated to the left, each slide fills the whole window. These slides are then accessed using a navigation, this works fine in all browsers hiding the horizontal scroll as it should.
I have come across a problem now though where even though the horizontal scrollbar is hidden the hidden pages can be scrolled to using the magic pad swipe/scroll.
Is there anyway this can be disabled using a specific webkit css property or by adding javascript?
I have seen posts where people have instructed users to disable the swipe/scroll in through terminal etc but that's not what Im after.
I have found this problem only to happen in Firefox 6 for mac so far.
Thanks
Kyle
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果溢出属性不起作用,请尝试使用
JQuery.scrollTop()
或JQuery.scrollLeft()
老实说,这是唯一想到的事情。
我当然假设滑动/滚动会触发滚动事件,否则该功能将失败,在这种情况下我知道没有可行的解决方案。
If the overflow property isn't working, try using
JQuery.scrollTop()
orJQuery.scrollLeft()
That's the only thing that comes to mind, to be honest.
I assume of course that the swipe/scroll triggers a scroll event, otherwise that function would fail, in which case I know of no working solution.