cancel
Showing results for 
Search instead for 
Did you mean: 

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

Mathew Grabau
Associate III

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.

1 REPLY 1
Michael K
Senior III

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