Hello,

i am trying to improve panning support for our online map (see 
http://www.geomajas.org) by using the Dom.setCapture()/releaseCapture() 
methods. These methods allow to capture all mouse events while the panning 
is going on. This is good because it prevents unwanted behavior such as 
disruption of the panning when the mouse is moved outside the map area.
Unfortunately this also means that all other elements will no longer 
receive the events they have registered for. In my case, other controllers 
that do some useful activity, like showing the coordinates of the mouse 
pointer, will no longer receive the mouse-move events they have registered 
for. I could of course wrap all that functionality in my panning 
controller, but that would violate separation of concerns, especially since 
i have no way of knowing which controllers have registered at any time. The 
problem gets even worse with the more complex drag-and-drop like behavior 
that i need for online map editing. In this case i would like to register 
controllers to detect if the mouse is hovering over a certain element 
during the drag-and-drop cycle.

So my basic question is the following: is it possible to receive all events 
but still let those events propagate to their original sources ? I did 
examine the native preview method, but i don't know 1) if this approach is 
scalable and 2) how the native event can be forwarded to a normal handler 
without cloning it (i end up with a dead event) ?
Maybe be i missed some other obvious way of handling this, please let me 
know if this is the case.

Thanks,
Jan

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to