Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
68
rated 0 times [  74] [ 6]  / answers: 1 / hits: 8113  / 10 Years ago, sun, august 10, 2014, 12:00:00

Referencing to the following example:



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



It does work under Chrome, but does not under Firefox.



In Firefox you can scroll only using arrow keys but not mousewheel.



Somebody know why this happens?


More From » scroll

 Answers
10

This was posted as a solution in the comments of the site you referenced:



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

[#43229] Friday, August 8, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
micayla

Total Points: 148
Total Questions: 92
Total Answers: 109

Location: Aruba
Member since Sat, Oct 2, 2021
3 Years ago
micayla questions
Fri, Dec 24, 21, 00:00, 3 Years ago
Thu, Apr 16, 20, 00:00, 4 Years ago
Thu, Nov 14, 19, 00:00, 5 Years ago
;