Commit 29a751f2 authored by Jonathan Wilkes's avatar Jonathan Wilkes

fix #304: context menu position is wrong on zoomed canvas under Windows

parent 158cb541
......@@ -4084,7 +4084,7 @@ function gui_canvas_popup(cid, xpos, ypos, canprop, canopen, isobject) {
.getAttribute("viewBox").split(" "); // need top-left svg origin
// Check nw.js version-- if its lts then we need the zoom_kludge...
zfactor = process.platform.nw === "0.14.7" ? zoom_kludge(zoom_level) : 1;
zfactor = process.versions.nw === "0.14.7" ? zoom_kludge(zoom_level) : 1;
// Set the global popup x/y so they can be retrieved by the relevant
// document's event handler
popup_coords[0] = xpos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment