Forum Discussion
DaveHendry
6 months agoCommunity Member
SL javascript eventListener for drag events
I am trying to add an event listener to a storyline 360 object using javascript. If the event listener is for a click, it works. But if the event listener is for any kind of dragging event, it doesn'...
- 6 months ago
Yes, i use GSAP drag with events. Works fine.
AdamZamczyk
6 months agoCommunity Member
If you need to track drag and drop event, I would suggest to add variables (so they change when an object is dropped, or when the object state changed status to Dropped) and then JavaScript can listed to these events (variable changes). Just important to remember than an item can be dragged back to he initial position or can be replaced with another object (and get back to original spot automatically.