I am using a mac trackpad.How to prevent the page going back and next to visited pages on horizontal scroll ?.
I tried to prevent the wheel events but it doesn't works most of the time.
container.addEventListener('wheel', function(ev) {
ev.preventDefault();
ev.stopPropagation();
return false;
}, {passive: false, capture: true});
even I tried blocking with mousewheel event which also leads to page navigation.