OnDragStart + Conditions for moving an object

Angelina shared this question 2 years ago
Answered

When created the OnDragStart gesture and i set an event Move. I also want to add a condition in there when a moving object reach a certain position ( range for x: 70 - 150 ) the object would be highlighted ( lets say change background color) As soon as OnDragEnd begins everything goes back as it was before draging. How is that possible to implement?

Comments (1)

photo
1

Hi Angelina,


Please find attached an example I've created for you. I hope it helps.


Best,


Sonia Durán