Skip to content

Commit b6fbc6b

Browse files
author
Michael Schultz
committed
Fixes custom expand recognizer #37
1 parent a5ce838 commit b6fbc6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gestures/Distance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Distance extends Gesture {
8686
// Retrieve the first input's progress.
8787
let progress = inputs[0].getGestureProgress(this.type);
8888

89-
if (this.type === 'expand') {
89+
if (this.constructor.name === 'Expand') {
9090
if (currentDistance < lastDistance) {
9191
progress.lastEmittedDistance = currentDistance;
9292
} else if ((currentDistance - progress.lastEmittedDistance >=

0 commit comments

Comments
 (0)