Skip to content

Commit

Permalink
Fixes custom expand recognizer #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Schultz committed Mar 26, 2018
1 parent a5ce838 commit b6fbc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gestures/Distance.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Distance extends Gesture {
// Retrieve the first input's progress.
let progress = inputs[0].getGestureProgress(this.type);

if (this.type === 'expand') {
if (this.constructor.name === 'Expand') {
if (currentDistance < lastDistance) {
progress.lastEmittedDistance = currentDistance;
} else if ((currentDistance - progress.lastEmittedDistance >=
Expand Down

0 comments on commit b6fbc6b

Please sign in to comment.