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: Button inside ScrollViewer inside Button Click issue #19145

Open
ramarinkahua opened this issue Jan 2, 2025 · 0 comments
Open

iOS: Button inside ScrollViewer inside Button Click issue #19145

ramarinkahua opened this issue Jan 2, 2025 · 0 comments
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform project/input ⌨️ Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...)

Comments

@ramarinkahua
Copy link

ramarinkahua commented Jan 2, 2025

Current behavior

In iOS only (Android & Windows are okay), I have a setup where a button is inside a ScrollViewer, which in turn is inside another button:
Outer Button
--> ScrollViewer
------> TextBlock
------> Inner Button

When I click in an empty area, the outer button receives the click, but if I click on an inner TextBlock (or any control), it blocks the click. However, if I remove the inner button, the TextBlock no longer blocks the clicks from reaching the outer button.

Expected behavior

The outer button should keep receiving click events even when clicking on the TextBlock with the presence of the inner button beside it.

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

Run the minimal repro project, click on 'CLICK HERE', notice that the console does not print '>> Main button clicked' (or hit breakpoint), but if you click on an empty area then the message is printed. However, if you comment out the button 'PART_RemoveButton' and rerun the project, then tapping on 'CLICK HERE' does cause the outer button to receive the click event and print the message.

Minimal repro project:
UnoApp3.zip

Workaround

Remove inner button 'PART_RemoveButton'

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

Uno.Sdk 5.5.54

Affected platforms

iOS

IDE

Rider macOS

IDE version

2024.3.3

Relevant plugins

No response

Anything else we need to know?

No response

@ramarinkahua ramarinkahua added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Jan 2, 2025
@MartinZikmund MartinZikmund added platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform project/input ⌨️ Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...) difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform project/input ⌨️ Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...)
Projects
None yet
Development

No branches or pull requests

2 participants