Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

scroll div horizontally with move wheel js

document.getElementById('outer').addEventListener('mousewheel', function(e) {
  this.scrollLeft -= (e.wheelDelta);
  e.preventDefault();
}, false);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scroll #div #horizontally #move #wheel #js
ADD COMMENT
Topic
Name
4+3 =