This PR is an attempt to fix #532.
I dropped using the deprecated wheelDelta (according to MDN) and solely rely on deltaY.
Then I just rely on the sign of deltaY because otherwise we would need to consider deltaMode, which can be lines, pixels or raw, depending on the pointing device.
Tested on Chrome and Firefox, with both mouse and touch.
This PR is an attempt to fix #532. I dropped using the deprecated wheelDelta (according to MDN) and solely rely on
deltaY
. Then I just rely on the sign ofdeltaY
because otherwise we would need to considerdeltaMode
, which can be lines, pixels or raw, depending on the pointing device.Tested on Chrome and Firefox, with both mouse and touch.