I want to make a rotation tool in my site, in an image inside a canvas. As I first step I want to find the mouse co-ordinates every time, so as to force later the image to rotate according to this. I know that I can use mousemove which will give me the coordinates as long as I am moving the mouse. But what I want, is to keep the mouse pressed and moving it and then get the coordinates. So not just mousemove but mouse clicked and move. Is there a way to do something like that?
Thanks in advance