[Chameleon-dev] [Bug 686] Mozilla - no zoom-box after measure
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Tue Nov 16 21:41:21 EST 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=686
------- Additional Comments From pspencer at dmsolutions.ca 2004-11-16 21:41 -------
this is a nasty one. After using the ruler tool then activating the zoom in
tool, the function MapWmapTool gets called twice in succession (with only one
call to CWC2OnMouseMoveFunction). I don't have a functional javascript debugger
right now so its impossible to trace, I'll try to work on this on another
machine that has a debugger.
The current workaround is to implement a quick check to ensure the function only
gets called once per CWC2OnMouseMoveFunction call ... this is not committed but
it works in my limited testing. I'd like to try a debugger before settling on
this solution though.
To implement the workaround, add a variable at the top of MapDHTML.js:
var gMapWmapToolcalled = false;
in MapDHTML.js in function MapWmapTool add
if (gMapWmapToolcalled)
return;
gMapWmapToolcalled = true;
in MapDHTML.widget.php in GetJavascriptOnMouseMoveFunctions() change to
$szFunction = gMapWmapToolcalled = false;\n";
$szFunction .= "$szJsFunctionName(e);\n";
that's what I'll commit if I can't find a better solution.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Chameleon-dev
mailing list