I am doing that one can upload the logo and position it anywhere in the background image, the problem is that the drag works for me with a canvas but with two sometimes it stops working after a while, do you know if there is a way to do it differently? . What I want is to obtain the position X, Y, width and height of the logo, the background width and height are provided to be able to visualize it
in this link is where what I have: https://jsfiddle.net/albert925/qt86spam/
Good morning Albert, you may have noticed that it stops moving ONLY if you scroll, the problem is in the way you grab the coordinates without considering the scroll
What I did was change all the clientX and clientY for pageX and pageY, I leave you the JSFiddle
https://jsfiddle.net/bardackx/da645awk/