mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-01-28 19:14:19 +01:00
adjust wheel delta with known data for firefox
This commit is contained in:
parent
5eaa53f028
commit
7195a41598
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue