Skip to main content
Mathew Grabau
Associate II
November 26, 2020
Question

handleGestureEvent not being called, does it get impacted by having other widgets on the page?

  • November 26, 2020
  • 1 reply
  • 669 views

I have some widgets on top of an image. Those widgets have interactions defined on them. I override handleGestureEvent in my View class.

It's almost like the widgets swallow/prevent the gesture event from coming through.

This topic has been closed for replies.

1 reply

Michael K
Senior III
November 29, 2020

Touch events only get passed to the topmost object. You can prove this by adding a Button to a screen, then dragging an empty Container to cover it. You should be able to see the button getting pressed if you click it. If you add a ClickListener to the empty Container, the Button will not react, because the empty ClickListener<Container> consumes the event, whether it does anything with it or not.

Embedded UI/UX Consulting: cadenza.design