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