mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 16:26:55 +02:00
formatting changes
This commit is contained in:
@@ -63,12 +63,12 @@
|
|||||||
|
|
||||||
|
|
||||||
function handler(event) {
|
function handler(event) {
|
||||||
var orgEvent = event || window.event,
|
var orgEvent = event || window.event,
|
||||||
args = [].slice.call(arguments, 1),
|
args = [].slice.call(arguments, 1),
|
||||||
delta = 0,
|
delta = 0,
|
||||||
deltaX = 0,
|
deltaX = 0,
|
||||||
deltaY = 0,
|
deltaY = 0,
|
||||||
absDelta = 0,
|
absDelta = 0,
|
||||||
absDeltaXY = 0,
|
absDeltaXY = 0,
|
||||||
fn;
|
fn;
|
||||||
event = $.event.fix(orgEvent);
|
event = $.event.fix(orgEvent);
|
||||||
@@ -99,8 +99,8 @@
|
|||||||
if ( !lowestDeltaXY || absDeltaXY < lowestDeltaXY ) { lowestDeltaXY = absDeltaXY; }
|
if ( !lowestDeltaXY || absDeltaXY < lowestDeltaXY ) { lowestDeltaXY = absDeltaXY; }
|
||||||
|
|
||||||
// Get a whole value for the deltas
|
// Get a whole value for the deltas
|
||||||
fn = delta > 0 ? 'floor' : 'ceil';
|
fn = delta > 0 ? 'floor' : 'ceil';
|
||||||
delta = Math[fn](delta / lowestDelta);
|
delta = Math[fn](delta / lowestDelta);
|
||||||
deltaX = Math[fn](deltaX / lowestDeltaXY);
|
deltaX = Math[fn](deltaX / lowestDeltaXY);
|
||||||
deltaY = Math[fn](deltaY / lowestDeltaXY);
|
deltaY = Math[fn](deltaY / lowestDeltaXY);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user