Skip to content

Commit 35ad44e

Browse files
authored
[Web] Add minVelocity to Pan custom activation criteria (#2884)
## Description Recently I've discovered that using `.minVelocity()` modifier doesn't affect `Pan` activation on web. After further investigation I've found out that list with custom activation criteria had `minVelocityX` and `minVelocityY`, but `minVelocity` was missing. This PR adds mentioned criterion. ## Test plan Tested on example app (just add `.minVelocity()` in any example with `Pan`
1 parent 249472b commit 35ad44e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/web/handlers/PanGestureHandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default class PanGestureHandler extends GestureHandler {
2020
'failOffsetYEnd',
2121
'minVelocityX',
2222
'minVelocityY',
23+
'minVelocity',
2324
];
2425

2526
public velocityX = 0;

0 commit comments

Comments
 (0)