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
chenpangpang
ComfyUI
Commits
89d0e9ab
Commit
89d0e9ab
authored
May 02, 2024
by
comfyanonymous
Browse files
Fix int widgets rounding.
parent
a56d02ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web/scripts/widgets.js
web/scripts/widgets.js
+1
-1
No files found.
web/scripts/widgets.js
View file @
89d0e9ab
...
@@ -229,7 +229,7 @@ function createIntWidget(node, inputName, inputData, app, isSeedInput) {
...
@@ -229,7 +229,7 @@ function createIntWidget(node, inputName, inputData, app, isSeedInput) {
val
,
val
,
function
(
v
)
{
function
(
v
)
{
const
s
=
this
.
options
.
step
/
10
;
const
s
=
this
.
options
.
step
/
10
;
this
.
value
=
Math
.
round
(
v
/
s
)
*
s
;
this
.
value
=
Math
.
round
(
(
v
-
this
.
options
.
min
)
/
s
)
*
s
+
this
.
options
.
min
;
},
},
config
config
),
),
...
...
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