Skip to content

Conversation

@leolost2605
Copy link
Member

@leolost2605 leolost2605 commented May 28, 2025

Fixes #2409

Once one finger gets lifted we switch from touch egg backend to scroll backend which would emit end and start signals which would cause a hide and show on the multitasking view which in turn would interrupt and restart the scroll gesture but not emit a end because of a wrong order. We can solve all these problems if we just don't emit start and end when the gesture gets interrupted while still going. This also is a small performance improvement because we don't go hidden shown everytime which saves us a bunch of recalculations.
Also don't allow a new gesture to start while one is already going.

(thanks @zeebok for the reproducer)

@leolost2605 leolost2605 requested a review from a team May 28, 2025 10:03
Copy link
Member

@lenemter lenemter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lenemter lenemter merged commit 847ca2e into main May 30, 2025
4 of 5 checks passed
@lenemter lenemter deleted the leolost/fix-stuck-in-ws-switch branch May 30, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows sometimes get stuck in an un-interactive state after using gestures to switch workspaces

3 participants