I'm working on a small canvas drawing program with GWT 2.3 and I'm
hitting a problem with IE9. After a user draws a rectangle to the
canvas, I want to allow dragging or resizing. To catch the mouse down
in the rectangle I'm using a technique similar to the one show in this
example: http://simonsarris.com/blog/225-canvas-selecting-resizing-shape

Basically I keep an ArrayList of my rectangles (other shapes will
follow). On mouse down, if my state is NONE (no drawing, dragging,
etc.) I clear a a hidden canvas and draw each item in my ArrayList to
to that canvas with fill style black and test for alpha. If alpha is
greater than zeor, I return the object clicked.

In Firefox, this works perfectly each time. However in IE I don't get
alpha > 0 till the 3rd click. If keep the mouse in a rectangle--NO
MOVEMENT--it takes 3 clicks in the same spot, 3 calls to my test
method, before alpha > 0.

What's the reason for this delay with IE? The example above is pure
Javascript,and it works in IE9 (if copy it locally and change the
doctype header). What gives with GWT? Is there some problem with GWT's
ImageData in IE? Is there some work around?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to