Skip to content

Inconsistent pointer events #2193

Closed

Description

@SuperJMN

The Tapped event of a parent control is raised only if a child adds a handler to its Tapped event. To understand it better, please, reproduce the steps below

Current behavior

The Tapped event in the parent is fired only when the child adds a handler to the Tapped event, even if it does nothing with it.

Expected behavior

The Tapped should be fired always (when the tap is inside the client area of the control and is "hittable".

Reproduction steps

  1. Clone UnoDesigner (commit SHA: 1c25993a58e7f2ebae192ef14556539da912e3c3)
  2. Run the Android or WASM heads
  3. Tap / Click on one of the items
  4. The item should be selected (correct behavior)
  5. Stop debugging
  6. Go to the DeltaContentControl class
  7. Comment the line that says thumb.Tapped += ThumbOnTapped;
  8. Execute the application again (WASM or Android)
  9. Click on any of the items
  10. the item isn't selected

Nuget Packages:

Uno.UI 2.0.512-dev.4143
Uno.Core 1.29.0-dev.103

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • Windows
  • Build tasks
  • Solution Templates

Visual Studio:

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Activity

  1. added
    kind/bug
    triage/untriaged
    on Nov 25, 2019
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/bugtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions