Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 5 tasks
dr1rrb opened this issue May 14, 2019 · 0 comments
Closed
1 of 5 tasks
Labels
kind/bug Something isn't working platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform

Comments

@dr1rrb
Copy link
Member

dr1rrb commented May 14, 2019

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

dr1rrb pushed a commit that referenced this issue May 14, 2019
…apped` event + add pseudo support for `VirtualKeyStates`

Mitigates: #864
dr1rrb pushed a commit that referenced this issue May 14, 2019
…apped` event + add pseudo support for `VirtualKeyStates`

Mitigates: #864
@ghuntley ghuntley added platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform kind/bug Something isn't working labels May 22, 2019
@dr1rrb dr1rrb mentioned this issue Jun 28, 2019
4 tasks
@dr1rrb dr1rrb closed this as completed Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform
Projects
None yet
Development

No branches or pull requests

2 participants