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
a7ebd5aa
"docs/vscode:/vscode.git/clone" did not exist on "baf354a7f152198222a4020da6071e7730c3ba3b"
Commit
a7ebd5aa
authored
May 08, 2023
by
comfyanonymous
Browse files
Fix masked editor issue with firefox on windows.
parent
850daf04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
web/extensions/core/maskeditor.js
web/extensions/core/maskeditor.js
+3
-3
No files found.
web/extensions/core/maskeditor.js
View file @
a7ebd5aa
...
...
@@ -368,7 +368,7 @@ class MaskEditorDialog extends ComfyDialog {
self
.
updateBrushPreview
(
self
);
if
(
event
instanceof
TouchEvent
||
event
.
buttons
==
1
)
{
if
(
window
.
TouchEvent
&&
event
instanceof
TouchEvent
||
event
.
buttons
==
1
)
{
var
diff
=
performance
.
now
()
-
self
.
lasttime
;
const
maskRect
=
self
.
maskCanvas
.
getBoundingClientRect
();
...
...
@@ -389,7 +389,7 @@ class MaskEditorDialog extends ComfyDialog {
brush_size
*=
event
.
pressure
;
this
.
last_pressure
=
event
.
pressure
;
}
else
if
(
event
instanceof
TouchEvent
&&
diff
<
20
){
else
if
(
window
.
TouchEvent
&&
event
instanceof
TouchEvent
&&
diff
<
20
){
// The firing interval of PointerEvents in Pen is unreliable, so it is supplemented by TouchEvents.
brush_size
*=
this
.
last_pressure
;
}
...
...
@@ -442,7 +442,7 @@ class MaskEditorDialog extends ComfyDialog {
brush_size
*=
event
.
pressure
;
this
.
last_pressure
=
event
.
pressure
;
}
else
if
(
event
instanceof
TouchEvent
&&
diff
<
20
){
else
if
(
window
.
TouchEvent
&&
event
instanceof
TouchEvent
&&
diff
<
20
){
brush_size
*=
this
.
last_pressure
;
}
else
{
...
...
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