You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by ca...@apache.org on 2005/07/31 10:12:30 UTC

svn commit: r226621 - in /xmlgraphics/batik/branches/svg11/sources/org/apache/batik: bridge/BridgeEventSupport.java gvt/event/AWTEventDispatcher.java

Author: cam
Date: Sun Jul 31 01:12:26 2005
New Revision: 226621

URL: http://svn.apache.org/viewcvs?rev=226621&view=rev
Log:
1. Fixed mouseout/mouseover tracking, which regressed some time between
   1.5beta5 and 1.6.

Modified:
    xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/BridgeEventSupport.java
    xmlgraphics/batik/branches/svg11/sources/org/apache/batik/gvt/event/AWTEventDispatcher.java

Modified: xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/BridgeEventSupport.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/BridgeEventSupport.java?rev=226621&r1=226620&r2=226621&view=diff
==============================================================================
--- xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/BridgeEventSupport.java (original)
+++ xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/BridgeEventSupport.java Sun Jul 31 01:12:26 2005
@@ -227,6 +227,7 @@
                                    clientXY,
                                    evt,
                                    true);
+                lastTargetElement = null;
             }
         }
 

Modified: xmlgraphics/batik/branches/svg11/sources/org/apache/batik/gvt/event/AWTEventDispatcher.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/branches/svg11/sources/org/apache/batik/gvt/event/AWTEventDispatcher.java?rev=226621&r1=226620&r2=226621&view=diff
==============================================================================
--- xmlgraphics/batik/branches/svg11/sources/org/apache/batik/gvt/event/AWTEventDispatcher.java (original)
+++ xmlgraphics/batik/branches/svg11/sources/org/apache/batik/gvt/event/AWTEventDispatcher.java Sun Jul 31 01:12:26 2005
@@ -77,12 +77,6 @@
     protected GraphicsNode lastHit;
 
     /**
-     * A dummy graphics node to dispatch "deselect" mouse events to. That is,
-     * when the mouse is clicked outside any nodes.
-     */
-    protected GraphicsNode dummyNode = new TextNode();
-
-    /**
      * The current GraphicsNode targeted by an key events.
      */
     protected GraphicsNode currentKeyEventTarget;
@@ -468,7 +462,7 @@
             processMouseEvent(gvtevt);
 
         } else {
-            // this is a deselect event, dispatch it to dummy node
+            // this is a deselect event, dispatch it to the root
             gvtevt = new GraphicsNodeMouseEvent(root,
                                                 evt.getID(),
                                                 evt.getWhen(),