maschek / imgmap

Javascript based imagemap editor
https://www.maschek.hu/imagemap/
GNU General Public License v2.0
59 stars 33 forks source link

Overflow: auto - Scroll and mouse position issue #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set pic_container_div style="overflow: auto; width: 800px; height: 600px"
2. Load a picture larger than 800x600 (to get the overflow activating)
3. Scroll to the middle (or anywhere other than top left)
4. Plot a rectangle

It seems that scoll position is not taken into account when plotting, i.e. it 
plots on the image coords the coords of the mouse within the div.

I'll take a look at the code and see if I can suggest a fix, but if you aor 
anyone else knows anything...

(BTW, I'm trying to implement this into a pre-existing standalone app)

Original issue reported on code.google.com by al.mcc...@gmail.com on 26 Aug 2011 at 8:36

GoogleCodeExporter commented 9 years ago
Issue present in all browsers.

Firefox: coords always relative to the container div

IE: Very weird, first click is always 80x90pixels away from cursor, but second 
click is always correct. Further investigation for this browser is in order I 
think (could be my complexed layout) :-S

Chrome: Same as Firefox.

Original comment by al.mcc...@gmail.com on 26 Aug 2011 at 8:48