mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-09 21:12:36 +08:00
add comment about touch event.
This commit is contained in:
parent
2ce43c18e7
commit
5631f0d21b
@ -390,6 +390,7 @@ class MaskEditorDialog extends ComfyDialog {
|
|||||||
this.last_pressure = event.pressure;
|
this.last_pressure = event.pressure;
|
||||||
}
|
}
|
||||||
else if(event instanceof TouchEvent && diff < 20){
|
else if(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;
|
brush_size *= this.last_pressure;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -511,7 +512,6 @@ class MaskEditorDialog extends ComfyDialog {
|
|||||||
self.lasty = y;
|
self.lasty = y;
|
||||||
self.lasttime = performance.now();
|
self.lasttime = performance.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
save() {
|
save() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user