From 29a751f23c11dd21c74297a6aa0737cd8267ac76 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Tue, 4 Apr 2017 20:32:04 -0400 Subject: [PATCH] fix #304: context menu position is wrong on zoomed canvas under Windows --- pd/nw/pdgui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index ba65943b2..80a657e3e 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -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; -- GitLab