Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
92d41f4e
Commit
92d41f4e
authored
Mar 07, 2017
by
Jonathan Wilkes
Browse files
Merge branch 'aggraef/purr-data-fix-scrollwheel-zoom'
parents
a2e5b2e4
9ead4c5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pd_canvas.js
View file @
92d41f4e
...
...
@@ -592,10 +592,12 @@ var canvas_events = (function() {
// MouseWheel event for zooming
document
.
addEventListener
(
"
wheel
"
,
function
(
evt
)
{
if
(
evt
.
deltaY
<
0
)
{
nw_window_zoom
(
name
,
+
1
);
}
else
if
(
evt
.
deltaY
>
0
)
{
nw_window_zoom
(
name
,
-
1
);
if
(
pdgui
.
cmd_or_ctrl_key
(
evt
))
{
if
(
evt
.
deltaY
<
0
)
{
nw_window_zoom
(
name
,
+
1
);
}
else
if
(
evt
.
deltaY
>
0
)
{
nw_window_zoom
(
name
,
-
1
);
}
}
});
...
...
Write
Preview
Markdown
is supported
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