Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
On Android and iOS if a button is positioned beyond the boundaries of a Canvas with a negative Canvas.Top or negative Canvas.Left value, then the button will not fire it’s click handler (or it’s Command)
This is not an issue for Windows or WASM.
Expected behavior
Button click event should still be actioned regardless of position.
How to reproduce it (as minimally and precisely as possible)
Current behavior
On Android and iOS if a button is positioned beyond the boundaries of a Canvas with a negative Canvas.Top or negative Canvas.Left value, then the button will not fire it’s click handler (or it’s Command)
This is not an issue for Windows or WASM.
Expected behavior
Button click event should still be actioned regardless of position.
How to reproduce it (as minimally and precisely as possible)
Reproduced by solution in repository https://github.com/BrianDT/UnoButtonOffCanvasIssue
Workaround
Re-architect the projects UI structure so that buttons are parented differently
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
4.9.20
Affected platforms
Android, iOS
IDE
Visual Studio 2022
IDE version
17.6.4
Relevant plugins
No response
Anything else we need to know?
No response