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
daa92a8f
"vscode:/vscode.git/clone" did not exist on "6c81634b295b41c2d5c6d17433a2c56dc7aeda37"
Commit
daa92a8f
authored
May 03, 2024
by
comfyanonymous
Browse files
Fix potential issues with the int rounding fix.
parent
89d0e9ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
web/scripts/widgets.js
web/scripts/widgets.js
+5
-1
No files found.
web/scripts/widgets.js
View file @
daa92a8f
...
@@ -229,7 +229,11 @@ function createIntWidget(node, inputName, inputData, app, isSeedInput) {
...
@@ -229,7 +229,11 @@ 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
-
this
.
options
.
min
)
/
s
)
*
s
+
this
.
options
.
min
;
let
sh
=
this
.
options
.
min
%
s
;
if
(
isNaN
(
sh
))
{
sh
=
0
;
}
this
.
value
=
Math
.
round
((
v
-
sh
)
/
s
)
*
s
+
sh
;
},
},
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