emigre / openseadragon-annotations

Draw annotations over deep zoom images
BSD 3-Clause "New" or "Revised" License
97 stars 40 forks source link

fix for #2 #3

Closed j-hudecek closed 8 years ago

j-hudecek commented 8 years ago

calculating the offset using http://www.jacklmoore.com/notes/mouse-position/ seems more reliable than using what the browser provides. Saving the bounding rectangle from the time of mousedown ensures no it is always calculated against the same rectangle.

emigre commented 8 years ago

Nice fix, thanks!