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

skala
Ivan Tcholakov 14 years ago
parent 0a634ee004
commit ba4b8550e8
  1. 9
      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(" "));

Loading…
Cancel
Save