We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5ce838 commit b6fbc6bCopy full SHA for b6fbc6b
src/gestures/Distance.js
@@ -86,7 +86,7 @@ class Distance extends Gesture {
86
// Retrieve the first input's progress.
87
let progress = inputs[0].getGestureProgress(this.type);
88
89
- if (this.type === 'expand') {
+ if (this.constructor.name === 'Expand') {
90
if (currentDistance < lastDistance) {
91
progress.lastEmittedDistance = currentDistance;
92
} else if ((currentDistance - progress.lastEmittedDistance >=
0 commit comments