Move (drag/pan) and zoom object (image or div) in pure js
问题 I'm working on a little script that makes an object (div or img) moveable and zoomable within a given frame. However I came across a few problems I'm not really sure of, because I'm a javascript beginner - so explanation of why those problems occure would be appreciated. Problems: Calling the functions start_drag() , while_drag() and stop_drag() returns undefined - why is that? What should be returned? The dragging and moving of the image does not work correctly - instead of clicking the