formatting changes

This commit is contained in:
Brandon Aaron
2013-10-18 18:47:43 -05:00
parent 215019ee42
commit 5e473a377a
+8 -8
View File
@@ -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);