Browse Source

Feature #2132 - ASCIIMathML.js - The live coordinates in svg-graphs are removed, because they are not calculated correctly for most of the browsers.

Ivan Tcholakov 14 years ago
parent
commit
ba4b8550e8
1 changed files with 7 additions and 2 deletions
  1. 7 2
      main/inc/lib/asciimath/ASCIIMathML.js

+ 7 - 2
main/inc/lib/asciimath/ASCIIMathML.js

@@ -3949,8 +3949,13 @@ function initPicture(x_min,x_max,y_min,y_max) { // set up the graph
   node.setAttribute("height",height);
   node.setAttribute("style",backgroundstyle);
   svgpicture.appendChild(node);
-  svgpicture.setAttribute("onmousemove","displayCoord(evt)");
-  svgpicture.setAttribute("onmouseout","removeCoord(evt)");
+  // Modified by Ivan Tcholakov, 08-JAN-2011.
+  // These events are suppressed because for some browsers
+  // the coordinates are not calculated correctly.
+  // TODO: Calculation to be tested and corrected after IE9 release.
+  //svgpicture.setAttribute("onmousemove","displayCoord(evt)");
+  //svgpicture.setAttribute("onmouseout","removeCoord(evt)");
+  //
   svgpicture.setAttribute("onclick","mClick(evt)");
   node = myCreateElementSVG("text"); // used for displayCoord
   node.appendChild(doc.createTextNode(" "));