summerstyle / summer

Html image map editor based on javascript, html5, inline SVG (modern FF, Chrome, Opera and IE10+)
http://summerstyle.github.io/summer/
MIT License
356 stars 136 forks source link

Rectangle resize does not fit edges properly #16

Closed chrjs closed 8 years ago

chrjs commented 8 years ago

When resizing a rectagle area, if the mouse moves fast outside the image boundaries, the rectangle area is resized up to last mousemove event before exiting the boundaries, instead of moving up to the edge coordinates.

summerstyle commented 8 years ago

Yes, but how it made: mousemove event listens for the container of an image, not for all document, this event fires not for every pixel, so we have this problem for fast mouse moving.

The solution for this problem is attaching mousemove event for all document, but this is more difficult than existing solution, and the problem is not critical(