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
37de99d5
Commit
37de99d5
authored
Apr 04, 2017
by
Jonathan Wilkes
Browse files
fix #295: sliders can become unresponse at patch load time
parent
29a751f2
Changes
1
Show whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
37de99d5
...
@@ -2637,13 +2637,18 @@ function gui_slider_new(cid, tag, color, p1, p2, p3, p4, basex, basey) {
...
@@ -2637,13 +2637,18 @@ function gui_slider_new(cid, tag, color, p1, p2, p3, p4, basex, basey) {
}
}
function
gui_slider_update
(
cid
,
tag
,
p1
,
p2
,
p3
,
p4
,
basex
,
basey
)
{
function
gui_slider_update
(
cid
,
tag
,
p1
,
p2
,
p3
,
p4
,
basex
,
basey
)
{
var
indicator
=
get_item
(
cid
,
tag
+
"
indicator
"
);
var
indicator
;
if
(
patchwin
[
cid
])
{
indicator
=
get_item
(
cid
,
tag
+
"
indicator
"
);
if
(
indicator
)
{
configure_item
(
indicator
,
{
configure_item
(
indicator
,
{
x1
:
p1
-
basex
,
x1
:
p1
-
basex
,
y1
:
p2
-
basey
,
y1
:
p2
-
basey
,
x2
:
p3
-
basex
,
x2
:
p3
-
basex
,
y2
:
p4
-
basey
y2
:
p4
-
basey
});
});
}
}
}
}
function
gui_slider_indicator_color
(
cid
,
tag
,
color
)
{
function
gui_slider_indicator_color
(
cid
,
tag
,
color
)
{
...
...
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