Skip to content

Fix MotionEvent gestures getting stuck in player#2629

Merged
fire-light42 merged 1 commit intorecloudstream:masterfrom
Luna712:fix-stuck-gestures
Apr 8, 2026
Merged

Fix MotionEvent gestures getting stuck in player#2629
fire-light42 merged 1 commit intorecloudstream:masterfrom
Luna712:fix-stuck-gestures

Conversation

@Luna712
Copy link
Copy Markdown
Contributor

@Luna712 Luna712 commented Apr 7, 2026

Fixes:

  • 2x speed sometimes gets stuck enabled
  • Zoom frame outline gets stuck on even when not touching screen anymore
  • Swipe to fast forward time stamp gets stuck visible on the screen even when gesture has completed

That is fixed by handling ACTION_CANCEL which can sometimes get called instead of ever calling ACTION_UP or ACTION_POINTER_UP. For zoom, it also adds a check if lastPan is not null to run those actions because when ACTION_CANCEL is triggered there, event.pointerCount is not always two. If there is a lastPan we can just run it like normal since that means it is still active and we should run those events, in order to stop the action.

Fixes:
* 2x speed sometimes gets stuck enabled
* Zoom frame outline gets stuck on even when not touching screen anymore
* Swipe to fast forward time stamp gets stuck visible on the screen even when gesture has completed

That is fixed by handling `ACTION_CANCEL` which can sometimes get called instead of ever calling `ACTION_UP` or `ACTION_POINTER_UP`. For zoom, it also adds a check if `lastPan` is not null to run those actions because when `ACTION_CANCEL` is triggered there, `event.pointerCount` is not always two. If there is a `lastPan` we can just run it like normal since that means it is still active and we should run those events, in order to stop the action.
@Fuzzythegoatq
Copy link
Copy Markdown

Can smb just sdd disable zoom already bro😭🤦🏾‍♂️

@fire-light42
Copy link
Copy Markdown
Collaborator

Can smb just sdd disable zoom already bro😭🤦🏾‍♂️

An option to disable the zoom gesture would be a great first issue! I want to keep options to a minimum but such an option makes sense.

@fire-light42
Copy link
Copy Markdown
Collaborator

Good catch with this bug fix!
The code looks good but I will need to test before merging.

@fire-light42 fire-light42 merged commit f51885f into recloudstream:master Apr 8, 2026
2 checks passed
@Luna712 Luna712 deleted the fix-stuck-gestures branch April 8, 2026 23:01
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.

3 participants