codek
codek

Reputation: 343

Scroll Page Horizontally With Mouse Wheel

Im doing an horizontal scroll page using this tutorial (mousewheel plugin and script):

http://css-tricks.com/snippets/jquery/horz-scroll-with-mouse-wheel/

The scroll works on chrome but not on firefox, it doesn´t work on firefox in the tutorial also, any ideas how to fix it?

$(function() {
    $("body").mousewheel(function(event, delta) {
    this.scrollLeft -= (delta * 30);
    event.preventDefault();
    });
});

Upvotes: 0

Views: 1534

Answers (2)

tenny lv
tenny lv

Reputation: 31

There is some scroll plugin can help you. https://github.com/lvming6816077/H5FullscreenPage

Upvotes: 0

VoronoiPotato
VoronoiPotato

Reputation: 3173

http://cobbweb.me/blog/2012/03/30/jquery-mousewheel-plugin-version-2/

This plugin might help you to get mousewheel scroll working in firefox.

Upvotes: 2

Related Questions