unoplatform / uno

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!!
https://platform.uno
Apache License 2.0
8.96k stars 729 forks source link

[Android, iOS] Buttons positioned off canvas not firing #12702

Open BrianDT opened 1 year ago

BrianDT commented 1 year ago

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

Youssef1313 commented 1 year ago

I think might be duplicate of https://github.com/unoplatform/uno/issues/7393

BrianDT commented 1 year ago

@Youssef1313 Seems possible, its a different way of moving the button. Both will need to be validated when fixed.