Skip to content

Commit

Permalink
fix(web): After swiping closed, the Swipeable component cannot be swi…
Browse files Browse the repository at this point in the history
…ped open again (#2802)

## Description

After swiping closed, the component did not reset `this.currentState` to
`State.UNDETERMINED` internally, which prevents the execution of the
swipe open method.

<!--
Description and motivation for this PR.

Include 'Fixes #<number>' if this is fixing some issue.
-->

## Test plan

<!--
Describe how did you test this change here.
-->

---------

Co-authored-by: Michał Bert <[email protected]>
  • Loading branch information
yatessss and m-bert authored Mar 15, 2024
1 parent 042ec3f commit 08c921a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/handlers/GestureHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default abstract class GestureHandler implements IGestureHandler {

this.onStateChange(newState, oldState);

if (!this.enabled && this.isFinished()) {
if (this.isFinished()) {
this.currentState = State.UNDETERMINED;
}
}
Expand Down

0 comments on commit 08c921a

Please sign in to comment.