Koloff
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Koloff
-
-
Hi guys!
I have the following problem:
There is a draggable with attached methods onPress and onRelease. The draggable component has a button child. When I click on the draggable but outside of the button both events get fired. But when i click on the button only the onPress event gets fired (you can check this in the browser console). Same result happens if I put an input as a child and click on it.
Codepen:
I need a way to fire both onPress and onRelease events when I click on buttons and inputs that are children of the draggable component.
Thanks in advance!
Draggable onRelease method not fired
in GSAP
Posted
Thank you for the answer ! It worked well for buttons and links but now I can't use inputs and textareas because they don't get focused on click.