[mapguide-commits] r5132 - trunk/MgDev/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Sep 16 05:43:06 EDT 2010


Author: liuar
Date: 2010-09-16 09:43:06 +0000 (Thu, 16 Sep 2010)
New Revision: 5132

Modified:
   trunk/MgDev/Web/src/viewerfiles/quickplot.js
Log:
Submitted on behalf of Mars Wu
Fix this problem: 
If I click the "Get Printable Page" to invoke the Quick Plot function, the map's context menu will stop working. 

The reason is: Quick Plot overloadded the map's on mouse move event to handle the capture box moving. The new onmousemove event handler will check if the mouse is in the area for moving / rotating the capture box, then it invokes the original event handler. In IE, the new mouse move handler must return a value indicating the execution result, otherwise, the original handler will not be invoked. 

Modified: trunk/MgDev/Web/src/viewerfiles/quickplot.js
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/quickplot.js	2010-09-14 09:45:29 UTC (rev 5131)
+++ trunk/MgDev/Web/src/viewerfiles/quickplot.js	2010-09-16 09:43:06 UTC (rev 5132)
@@ -332,6 +332,8 @@
     
     onMouseMove : function(evt, originalHandler)
     {
+        var result = false;
+        
         if (this.active)
         {
             var point  = this.getMousePosition(evt);
@@ -361,9 +363,11 @@
         {
             if (originalHandler != null)
             {
-                originalHandler.apply(this.mapWindow, Array.prototype.slice.call(arguments, 0, arguments.length - 1));
+                result = originalHandler.apply(this.mapWindow, Array.prototype.slice.call(arguments, 0, arguments.length - 1));
             }
         }
+
+        return result;
     },
     
     panFeedback : function(evt, originalHandler)



More information about the mapguide-commits mailing list