Helo, everyone.
i'm try to use this tutorial:
https://www.w3schools.com/howto/howto_js_draggable.asp
but a have some problem. This draggable item use the mouse events to move the item and not the ondrag event. Then, how can i check if my item is touching another item ? Please, help me.
I would like to allow the users move a item and if this item is over a specific element the users will to receive a gift.
Draggable item check
in JavaScript
Posted
Helo, everyone.
i'm try to use this tutorial:
https://www.w3schools.com/howto/howto_js_draggable.asp
but a have some problem. This draggable item use the mouse events to move the item and not the ondrag event. Then, how can i check if my item is touching another item ? Please, help me.
I would like to allow the users move a item and if this item is over a specific element the users will to receive a gift.