Skip to content

[Android] Touch events are not dispatched properly with clipping and transforms #649

Closed

Description

@dr1rrb

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

On Android, if you set a clipping to allow "children overflow" on a control, then you set a RenderTransform on a child which put the child control out of the bounds the parent, then touch event won't be propagated to this child.

Expected behavior

Touch events are propagated properly to the child

Minimal reproduction of the problem with instructions

<Grid>
	<Grid.Clip>
		<RectangleGeometry Rect="0,0,300,300" />
	</Grid.Clip>
	<ToggleButton
		Width="100"
		Height="100"
		Content="Hello world">
		<ToggleButton.RenderTransform>
			<TranslateTransform X="100" Y="100"/>
		</ToggleButton.RenderTransform>
	</ToggleButton>
</Grid>

More info

The issue is that the parent of the root Grid of this sample, won't even propagate the event to the grid as it considers that the event is out of the view of this Grid

Environment

Nuget Package: Uno.UI
Package Version(s): current master
Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio: irrelevant
Relevant plugins: none

Activity

  1. added
    kind/bug
    on Mar 6, 2019
  2. added
    platform/android 🤖
    on May 22, 2019
  3. dr1rrb commented on Jan 7, 2020

    @dr1rrb
    MemberAuthor

    This show now be fixed by #650 and #1726

  4. added a commit that references this issue on Jan 12, 2025
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/bugplatform/android 🤖

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions