egekhter
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by egekhter
-
-
Love the product, first time posting.
I couldn't find in the docs if there was a method to detect if the draggable object moved left or right (or up or down).
I was calculating using onDragEnd
document.getElementById('draggableobject').offsetLeft - this.pointerX
In some cases I had moved the element to the right just a teeny bit but received a negative number from the calculation above.
Any advice would be appreciated.
Draggable Moved Left/Right Detection
in GSAP
Posted
Wow - I don't know if you did this tonight, but that answer went above and beyond the call of duty. Major kudos sir.