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
nerrons
purr-data
Commits
72cf26a7
Commit
72cf26a7
authored
Oct 22, 2016
by
Jonathan Wilkes
Browse files
check scroll bars after zooming the canvas
parent
3d391c39
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pd_canvas.js
View file @
72cf26a7
...
...
@@ -1303,6 +1303,7 @@ function nw_create_patch_window_menus(gui, w, name) {
var
z
=
gui
.
Window
.
get
().
zoomLevel
;
if
(
z
<
8
)
{
z
++
;
}
gui
.
Window
.
get
().
zoomLevel
=
z
;
pdgui
.
gui_canvas_get_scroll
(
name
);
}
});
minit
(
m
.
view
.
zoomout
,
{
...
...
@@ -1311,6 +1312,7 @@ function nw_create_patch_window_menus(gui, w, name) {
var
z
=
gui
.
Window
.
get
().
zoomLevel
;
if
(
z
>
-
7
)
{
z
--
;
}
gui
.
Window
.
get
().
zoomLevel
=
z
;
pdgui
.
gui_canvas_get_scroll
(
name
);
}
});
minit
(
m
.
view
.
zoomreset
,
{
...
...
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