mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
always include the deltaY at a minimum even if the browser does not support scrolling on X and Y axis
This commit is contained in:
@@ -78,6 +78,9 @@
|
||||
if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta; }
|
||||
if ( orgEvent.detail ) { delta = orgEvent.detail * -1; }
|
||||
|
||||
// At a minimum, setup the deltaY to be delta
|
||||
deltaY = delta;
|
||||
|
||||
// New school wheel delta (wheel event)
|
||||
if ( orgEvent.deltaY ) {
|
||||
deltaY = orgEvent.deltaY * -1;
|
||||
|
||||
Reference in New Issue
Block a user