mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 00:18:03 +02:00
Support for geckos older axis interface
This commit is contained in:
@@ -81,6 +81,12 @@
|
||||
// At a minimum, setup the deltaY to be delta
|
||||
deltaY = delta;
|
||||
|
||||
// Firefox < 17 related to DOMMouseScroll event
|
||||
if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
|
||||
deltaY = 0;
|
||||
deltaX = delta * -1;
|
||||
}
|
||||
|
||||
// New school wheel delta (wheel event)
|
||||
if ( orgEvent.deltaY ) {
|
||||
deltaY = orgEvent.deltaY * -1;
|
||||
|
||||
Reference in New Issue
Block a user