adjust wheel delta with known data for firefox

This commit is contained in:
Jakob Ketterl 2024-01-29 02:32:50 +01:00
parent 5eaa53f028
commit 7195a41598

View file

@ -17,5 +17,6 @@ function wheelDelta(evt) {
// chrome and webkit-based browsers seem to correlate one tick of the wheel to 120 pixels.
return evt.deltaY / 120;
}
return evt.deltaY;
// firefox seems to scroll at an interval of 6 lines per wheel tick
return evt.deltaY / 6;
}