Answers for "scroll div horizontally with move wheel js"

0

scroll div horizontally with move wheel js

document.getElementById('outer').addEventListener('mousewheel', function(e) {
  this.scrollLeft -= (e.wheelDelta);
  e.preventDefault();
}, false);
Posted by: Guest on December-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language