scroll horizontally on mouse wheel code example
Example: scroll div horizontally with move wheel js
document.getElementById('outer').addEventListener('mousewheel', function(e) {
this.scrollLeft -= (e.wheelDelta);
e.preventDefault();
}, false);
document.getElementById('outer').addEventListener('mousewheel', function(e) {
this.scrollLeft -= (e.wheelDelta);
e.preventDefault();
}, false);