Skip to content

[iOS] Fast tap while subscribed to Tapped event, prevents Pointer events #864

Closed

Description

@dr1rrb

I'm submitting a...

  • Bug report

Current behavior

If a GestureRecognizer is set on a UIView, then when it recognize a gesture, the "touches" are cancelled (i.e. the overridable TouchesCancelled in fired instead of the TouchesEnded in the UIElement). Sometimes, it may even prevent the TouchesBegan (if UI is big enough?).

This has multiple effects:

  1. You may not receive the PointerReleased (has it's hooked to the TouchesEnded) (usually affect "pressed" visual state)
  2. Tapped vs pointers events are not fired in the same order as Windows
  3. Tapped may be fired while no pointers are raised

Expected behavior

As of windows, we should always (depending of capture, pointer moves, etc.) received events in the following sequence:

  1. Pressed
  2. Released
  3. Tapped

Minimal reproduction of the problem with instructions

Cf. sample RoutedEvent_TappedAndRelease

More info / how to diagnose

You are probably affected by this bug if:

  • Your UIElement does not react to "fast" tap, but reacts to "long tap" (keep your finger half a second on screen ... but lower than the "hold" delay).
  • Your Control stays in "pressed" state.

Environment

Nuget Package: Uno.UI
Package Version(s): 1.45.0-dev.1450
Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio: irrelevant
Relevant plugins: none

Activity

  1. added
    platform/ios 🍎
    kind/bug
    on May 22, 2019
  2. added a commit that references this issue on Mar 12, 2025
  3. added a commit that references this issue on Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugplatform/ios 🍎

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions