[prev in list] [next in list] [prev in thread] [next in thread]
List: batik-dev
Subject: cvs commit: xml-batik/sources/org/apache/batik/bridge BridgeEventSupport.java
From: cjolif () apache ! org
Date: 2001-02-21 17:32:44
[Download RAW message or body]
cjolif 01/02/21 09:32:44
Modified: sources/org/apache/batik/bridge BridgeEventSupport.java
Log:
fix a remaining problem with drag event. When there's nothing under
the mouse the event should not be forwarded.
Revision Changes Path
1.8 +15 -3 xml-batik/sources/org/apache/batik/bridge/BridgeEventSupport.java
Index: BridgeEventSupport.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/BridgeEventSupport.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- BridgeEventSupport.java 2001/02/21 16:49:53 1.7
+++ BridgeEventSupport.java 2001/02/21 17:32:41 1.8
@@ -43,7 +43,7 @@
* on the GVT root to propagate GVT events to the DOM.
* @author <a href="mailto:cjolif@ilog.fr>Christophe Jolif</a>
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
- * @version $Id: BridgeEventSupport.java,v 1.7 2001/02/21 16:49:53 cjolif Exp $
+ * @version $Id: BridgeEventSupport.java,v 1.8 2001/02/21 17:32:41 cjolif Exp $
*/
class BridgeEventSupport implements SVGConstants {
private static final String[] EVENT_ATTRIBUTES_GRAPHICS = {
@@ -324,8 +324,8 @@
}
public void mouseDragged(GraphicsNodeMouseEvent evt) {
GraphicsNode node = evt.getRelatedNode();
+ GraphicsNodeMouseEvent evt2 = null;
if (lastTarget != node) {
- GraphicsNodeMouseEvent evt2 = null;
if (lastTarget != null) {
evt2 = new GraphicsNodeMouseEvent(lastTarget,
evt.MOUSE_EXITED,
@@ -354,7 +354,19 @@
}
}
try {
- dispatchMouseEvent("mousemove", evt, true);
+ if (node != null) {
+ evt2 = new GraphicsNodeMouseEvent(node,
+ evt.MOUSE_MOVED,
+ evt.getWhen(),
+ evt.getModifiers(),
+ evt.getX(),
+ evt.getY(),
+ evt.getClickCount(),
+ null);
+ dispatchMouseEvent("mousemove",
+ evt2,
+ true);
+ }
} finally {
lastTarget = node;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic