[英]Scroll Page Horizontally With Mouse Wheel
我正在使用本教程(mousewheel插件和脚本)执行水平滚动页面:
http://css-tricks.com/snippets/jquery/horz-scroll-with-mouse-wheel/
滚动工作在chrome但不在firefox上,它也不适用于教程中的firefox,任何想法如何修复它?
$(function() {
$("body").mousewheel(function(event, delta) {
this.scrollLeft -= (delta * 30);
event.preventDefault();
});
});
http://cobbweb.me/blog/2012/03/30/jquery-mousewheel-plugin-version-2/
这个插件可能会帮助你在Firefox中使用鼠标滚轮。
有一些滚动插件可以帮助你。 https://github.com/lvming6816077/H5FullscreenPage
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.