Skip to content

UI Child get the touch input of the parent #346

Open

Description

@Richter17

Hey, I'm working on a project that has kind of multi gesture menu.

I have transformer, swipe, buttons so and so.
I found out that if I have a UI element (let's call it the Control Panel) has a child, the transform gesture inputs include the children of the panel. so even if I try to drag the child (doesn't have transformer or transform gesture components) it moves the parent,
Screenshot (9)_LI

so my problem, as seen in the picture there is a Lock area and swipe area both children of the middle circle that is called Control Panel. when I try to swipe in the swipe area (swipe is different child because drag and swipe is almost the same thing) when the lock area is on (simetimes he is off and then it works ok) he drags all the panel like I touch the middle circle.
any ideas how to solve this?

looked in the docs, didn't find anything related to transfer the gestures to children
My hierarchy:
Parent: ControlPanel has Transform Gesture, Transformer, Tap Gesture
Child 1: SwipeBack has Swipe(Custom) Gesture
Child 2: SwipeNext has Swipe(Custom) Gesture
Child 3: LockPanel has Long Press Gesture and 4 images childs that surround the Control Panel (also works here the children accept the long press gesture as it part of the parent)

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions