https://jsfiddle.net/swek0epj/
document.addEventListener('wheel', function(e) {
alert(e.deltaX);
})
I tested above code by pushing mouse scroll to the right in various browsers and results are:
Chrome version 48: 25
Firefox version 44: 0.75
Internet Explorer version 11: 14.24
Microsoft Edge version 13: -21.36
Problem is, I need to detect the direction to navigate with side scroll and direction is reversed on Edge (it is negative)
Any proposal to make this cross browser without using outdated MouseWheelEvent (without wheelDeltaX) or MouseScrollEvent?