Skip to content

Commit

Permalink
fix: cancel snapping animations on drag
Browse files Browse the repository at this point in the history
  • Loading branch information
andreialecu committed Feb 5, 2021
1 parent 72b4e54 commit 63fa2dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/createCollapsibleTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,8 @@ const createCollapsibleTabs = <T extends TabName>() => {
}
},
onBeginDrag: () => {
cancelAnimation(accDiffClamp)
isSnapping.value = false
endDrag.value = 0
},
onEndDrag: () => {
Expand Down

0 comments on commit 63fa2dc

Please sign in to comment.