Commit fa211a0
committed
fix: prevent swipe back gesture during push/pop transitions (#609)
This fix resolves a race condition where swiping back during a push
transition caused the app to freeze. The issue was particularly severe
when using historySyncPlugin, causing complete UI lockup.
The root cause was that the swipe gesture listener on the edge element
did not check if the activity was in an active transition state before
starting the swipe. This allowed users to initiate a swipe gesture
while a new activity was sliding in (enter-active) or sliding out
(exit-active), creating conflicting animations.
Changes:
- Added transition state check in useStyleEffectSwipeBack's onTouchStart
- Swipe gestures are now blocked when activity is in "enter-active" or
"exit-active" transition states
- Only allows swipe to start when activity is in stable state
("enter-done" or "exit-done")
Fixes #609
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 1e5aae3 commit fa211a0
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
| |||
0 commit comments