handleGestureEvent not being called, does it get impacted by having other widgets on the page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-26 12:57 PM
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.
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-28 10:19 PM
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.
