Skip to content

[CP] Fix iOS Touch popover gesture completion#912

Merged
Vetle444 merged 1 commit into
patch/60.2.xfrom
vefi/bugfix-1844-touch-popover-60.2.x
Jun 29, 2026
Merged

[CP] Fix iOS Touch popover gesture completion#912
Vetle444 merged 1 commit into
patch/60.2.xfrom
vefi/bugfix-1844-touch-popover-60.2.x

Conversation

@Vetle444

Copy link
Copy Markdown
Contributor

Description of Change

Cherry-pick of #911 to patch/60.2.x.

Fixes an iOS gesture state issue where opening a popover or context menu from Touch.Command could leave scrolling and swipe-back gestures broken after the overlay was dismissed.

The root cause was that the custom TouchEffectTapGestureRecognizer executed the tap command directly from TouchesEnded without first completing/failing its own UIKit recognizer state. If that command opened a popover, UIKit could enter the presentation/dismissal flow while the Touch recognizer was still part of the active touch sequence.

This change makes the Touch recognizer explicitly set Ended, Failed, or Cancelled, and defers command execution to the next main-thread turn so UIKit gets a clean gesture boundary before the popover/context menu opens.

The previous fix in this patch line remains in place where it is still useful for preventing taps behind open overlays, but its broad pan/simultaneous-recognition workaround was only a band-aid and did not fix the fundamental recognizer lifecycle issue. This PR replaces that part with the root-cause fix.

Todos

  • I have tested on an Android device.
  • I have tested on an iOS device.
  • I have supported accessibility

@Vetle444 Vetle444 changed the title Fix iOS Touch popover gesture completion [CP] Fix iOS Touch popover gesture completion Jun 29, 2026
@Vetle444 Vetle444 force-pushed the vefi/bugfix-1844-touch-popover-60.2.x branch from 5e0e60a to bdaf093 Compare June 29, 2026 08:56
@Vetle444 Vetle444 merged commit e2926f0 into patch/60.2.x Jun 29, 2026
1 check passed
@Vetle444 Vetle444 deleted the vefi/bugfix-1844-touch-popover-60.2.x branch June 29, 2026 10:04
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.

2 participants