gesture-helper
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -495,7 +495,7 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
if (this.startDirection === 'horizontal') { | ||
deltaX < 0 ? this.emit('pan.x.left', { delta: Math.abs(deltaX), sourceEvent: e }) : this.emit('pan.x.right', { delta: Math.abs(deltaX), sourceEvent: e }); | ||
deltaX < 0 ? this.emit('pan.x.left', { delta: deltaX, sourceEvent: e }) : this.emit('pan.x.right', { delta: deltaX, sourceEvent: e }); | ||
} | ||
if (this.startDirection === 'vertical') { | ||
deltaY < 0 ? this.emit('pan.y.up', { delta: Math.abs(deltaY), sourceEvent: e }) : this.emit('pan.y.down', { delta: Math.abs(deltaY), sourceEvent: e }); | ||
deltaY < 0 ? this.emit('pan.y.up', { delta: deltaY, sourceEvent: e }) : this.emit('pan.y.down', { delta: deltaY, sourceEvent: e }); | ||
} | ||
@@ -502,0 +502,0 @@ |
{ | ||
"name": "gesture-helper", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "a *tiny* touch & mouse library to help make tracking touch interactions more simple.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -161,4 +161,4 @@ 'use strict'; | ||
deltaX < 0 | ||
? this.emit('pan.x.left', { delta: Math.abs(deltaX), sourceEvent: e }) | ||
: this.emit('pan.x.right', { delta: Math.abs(deltaX), sourceEvent: e }); | ||
? this.emit('pan.x.left', { delta: deltaX, sourceEvent: e }) | ||
: this.emit('pan.x.right', { delta: deltaX, sourceEvent: e }); | ||
} | ||
@@ -168,4 +168,4 @@ | ||
deltaY < 0 | ||
? this.emit('pan.y.up', { delta: Math.abs(deltaY), sourceEvent: e }) | ||
: this.emit('pan.y.down', { delta: Math.abs(deltaY), sourceEvent: e }); | ||
? this.emit('pan.y.up', { delta: deltaY, sourceEvent: e }) | ||
: this.emit('pan.y.down', { delta: deltaY, sourceEvent: e }); | ||
} | ||
@@ -172,0 +172,0 @@ |
70345