Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wynn
purr-data
Commits
29a751f2
Commit
29a751f2
authored
Apr 04, 2017
by
Jonathan Wilkes
Browse files
fix #304: context menu position is wrong on zoomed canvas under Windows
parent
158cb541
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
29a751f2
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment