Interactable Component doesn't block underlying scroller #308
Closed
Drunk3n-P1nky
started this conversation in
Bugs
Replies: 1 comment 1 reply
-
Because the Scroller is "draggable", it will still capture the drag events if nothing rendering over it captures them. You can configure an Interactable to "block" that behavior as described here! As for your note of OnPress/OnRelease still firing from a not-top-most-rendered (active) Interactable, that sounds unexpected. Perhaps you could share a brief video or a few screenshots to help us understand the behavior you're observing? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Input System Package - Touch;
Target platform: Android;
Editor - Simulator (haven't checked whether it's the same for build yet)
Unity Version: 2022.3.4f1;
UI setup:
Interactable component blocks any other Interactable component behind it, but it doesn't work with scroller. Also I noticed interesting behaviour with draggable being ticked in Interactable component. Seems like OnPress and OnRelease gestures are called anyway despite it being behind some other Interactable. Although OnClicked gesture is not triggered and I can disable scroller component, it's still a bit inconvenient as UI animations are triggered because of OnPress and OnRelease gestures.
Is this intended behaviour?
Beta Was this translation helpful? Give feedback.
All reactions