Skip to content

Commit

Permalink
[Web] Add minVelocity to Pan custom activation criteria (#2884)
Browse files Browse the repository at this point in the history
## 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`
  • Loading branch information
m-bert authored Apr 29, 2024
1 parent 249472b commit 35ad44e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/web/handlers/PanGestureHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default class PanGestureHandler extends GestureHandler {
'failOffsetYEnd',
'minVelocityX',
'minVelocityY',
'minVelocity',
];

public velocityX = 0;
Expand Down

0 comments on commit 35ad44e

Please sign in to comment.