Issue with dragging shapes

fireball <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
I have two issues actually, one major and one minor.

Major: I can't drag shapes over others. I have to drag them around for it to
work. Note that when I go back to the shape, the handle is still there and
the shape will continue moving without re-clicking.
Does it have to do with the way I add shapes to the DOM document or the way
I handle the dragging, or is it both, or is it something else?

Minor: Moving mouse too fast after a mousedown loses the shape (shape stops
moving) but when I go back to it the handle is still there and the shape
keeps moving with the mouse without re-clicking on it. Same behaviour as in
the major case above. What would be the cause?

I register a handler object which listens to mousedown, mousemove, and
mouseup for any object that is draggable. I do keep track of initial points
to re-adjust the position. Something similar to
http://wiki.apache.org/xmlgraphics-batik/DragTutorial 

Please let me know if you need to see any code for more info.

Thanks,

fireball.



--
View this message in context: http://batik.2283329.n4.nabble.com/Issue-with-dragging-shapes-tp4655175.html
Sent from the Batik - Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.