mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-20 22:05:13 +00:00
adjust wheel delta with known data for firefox
This commit is contained in:
parent
5eaa53f028
commit
7195a41598
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue