How to code a draggable image?

15th Apr 2021, 9:13 PM
Gayatri Ghosh
Gayatri Ghosh - avatar
1 Answer
+ 2
<img src="" draggable="true"> However, that works only for the mouse pointer's event. You have to write a custom function that changes the css properties (left, top) of the selected image if you must use a touch event. The function could be hard to write, you update the position of a selected image on every frame
15th Apr 2021, 9:25 PM
Mirielle - avatar