Add the mousemove to the parent element. Mousedown on the image, add the mousemove event listener to the document. Mouseup (on the document) remove the mousemove event listener from the document.
On Tue, Feb 21, 2012 at 12:17 PM, woomla <[email protected]> wrote: > Hi, > > When I have an img element, click on it and move the mouse, I > basically drag the image. > But I don't want to drag the mouse, I want to receive mousemove > events. > > How can I do that? > > See this: http://jsfiddle.net/woomla/jajwL/1/ > > Click and drag the image, no mousemove events are reported. > > W.
