Skip to content

[WASM Skia] Long press clicks before opening context menu #22229

Description

@mikernet

Current behavior 🐛

Long pressing (i.e. with a mobile device) on an element (like say a button) clicks that button as well as opening an attached context flyout.

Expected behavior 🎯

Long pressing should open the context flyout instead of clicking the element, treating it the same as a right click.

Only tested right now on WASM Skia, not entirely sure how the other platforms behave.

How to reproduce it (as minimally and precisely as possible) 🔬

<Button Command="{x:Bind ...}">
  <TextBlock Text="Button content"/>

  <Button.ContextFlyout>
    <MenuFlyout>
      <MenuFlyoutItem Text="Some Menu Item" Command="{x:Bind ...}"/>
    </MenuFlyout>
  </Button.ContextFlyout>
</Button>

Observe that long pressing on the button opens the menu but also executes the button command.

Workaround 🛠️

Only workaround I found is really gross: await a 100ms delay at the start of the button command and then only proceed if a context menu is not open (need to handle menu opened/closed events and track "is menu open state" in a property to facilitate this). Not 100% reliable.

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

WebAssembly

Uno.Sdk version (and other relevant versions) 📦

6.4.53, 6.5.0-dev.100, 6.7.0-dev.99

IDE version 🧑‍💻

No response

Anything else we need to know? 💬

No response

Activity

  1. added
    triage/untriaged
    difficulty/tbd
    on Jan 2, 2026
  2. added theissue type on Jan 2, 2026
  3. changed the title [-][WASM] Long press on clicks before opening context menu[/-] [+][WASM] Long press clicks before opening context menu[/+] on Jan 2, 2026
  4. changed the title [-][WASM] Long press clicks before opening context menu[/-] [+][WASM Skia] Long press clicks before opening context menu[/+] on Jan 2, 2026
  5. github-actions commented on May 19, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  6. added
    stale
    on May 19, 2026
  7. removed
    stale
    on May 19, 2026
  8. sasatepavac commented on May 20, 2026

    @sasatepavac

    UNO version getting bumped to test on app.

  9. mikernet commented on Jun 28, 2026

    @mikernet
    ContributorAuthor

    Note: added 6.7.0-dev.99 to the SDK version list - this issue still remains.

  10. added a commit that references this issue on Jul 13, 2026
    ef2fcbc
  11. added 2 commits that reference this issue on Aug 22, 2026
    806e472
    72d6a2b
  12. added 2 commits that reference this issue on Oct 3, 2026
    020aac8
    b66339e
  13. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  14. added
    stale
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/tbdstaletriage/untriaged

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions