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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Apr 1 06:32:48 PDT 2018


Author: jng
Date: 2018-04-01 06:32:48 -0700 (Sun, 01 Apr 2018)
New Revision: 9375

Modified:
   trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
Prevent clicks from tooltip content from falling through, triggering normal click handling (eg. Selection).

Fixes #2779

Modified: trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2018-03-30 09:42:54 UTC (rev 9374)
+++ trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2018-04-01 13:32:48 UTC (rev 9375)
@@ -893,6 +893,17 @@
 
 function OnMouseDown(e)
 {
+    //Check if this event originated from the tooltip (or child within)
+    var tgt = msie ? e.srcElement: e.target;
+    while(tgt && tgt.tagName != "BODY")
+    {
+        if(tgt.id == "hlTip") 
+        {
+            return true;
+        }
+        tgt = tgt.parentNode;
+    }
+
     if(!PopupMouseDown(e))
     {
         hidePopup(tbMenu);



More information about the mapguide-commits mailing list