I'm developing an app with click and drop as opposed to drag and drop.
I have a bunch of images on a canvas. When I click an image it adds a
MOUSE_MOVE event listener to the canvas. I then relocate the image
based on the canvas mouseX and mouseY movement. This event is removed
when I click the mouse a second time. As you can understand, this work
well if the image stays under the mouse, but goes haywire when the
mouse is moved over other images or if you move the mouse too quickly.
I could disable all the other objects on the canvas from responding to
the mouse movement but is there a better way to go about this.    

Reply via email to