youmoula / jcrop

Automatically exported from code.google.com/p/jcrop
0 stars 0 forks source link

Iframe event bug with IE #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Download the demo and load into a surrounding Iframe on your local server.

What is the expected output? What do you see instead?

EXPECTED
I expect IE to manage the mouse event properly when dragging a Jcrop selectable 
area outside the Iframe.

ACTUAL
If you select an area of an image within the Jcrop div, but drag the mouse over 
the edge, IE has a problem remembering what events have been triggered.

The jcrop window initially looks ok, but when you go back into the iframe area, 
the mousedown event is forced on. (I think it's because JCrop loses where the 
mouse pointer is relative to the JCrop div).

What version of the product are you using? On what operating system?

JCrop version: Latest demo from the website suffers.
OS version: Windoze 7, Vista (probably all)
Browser version: IE9 (But I expect this occurs in ALL IE browsers). FF and 
Chrome OK

Please provide any additional information below.

ONLY IE has this problem. Incidentally the reason I want to use an Iframe is to 
be able to edit more than one image on the same HTML page without refreshing 
the whole thing (esp if you have loaded many images on the page already), if 
you try to instantiate Jcrop on the same page more than once, or you want to 
load in and manipulate different images, you get unexpected results, things 
just don't work (eg - Second image you load doesn't display or displays with 
the previous image dimensions, or you could get duplicate mouse select areas... 
arggh! and several of others!).  - An Iframe gets round this by using one HTML 
page per Jcrop instance and you can load this into a containing HTML page 
without reloading the whole window.

PS: Also note that the Jcrop website advises ONLY ONE instance of JCrop per 
HTML page per image.

Original issue reported on code.google.com by brown...@gmail.com on 27 Oct 2011 at 10:47