mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-22 12:27:05 +08:00
Changed zoom speed; On Mac, the previous speed was too fast
This commit is contained in:
parent
3cd31d0e24
commit
f61be8b743
@ -6879,10 +6879,11 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
|
||||
var scale = this.ds.scale;
|
||||
|
||||
if (delta > 0) {
|
||||
scale *= 1.1;
|
||||
scroll_sensitivity = 500; // maybe this in a general config
|
||||
if (delta > 0) {
|
||||
scale *= 1 + (delta / scroll_sensitivity);
|
||||
} else if (delta < 0) {
|
||||
scale *= 1 / 1.1;
|
||||
scale *= 1 + (delta / scroll_sensitivity);
|
||||
}
|
||||
|
||||
//this.setZoom( scale, [ e.clientX, e.clientY ] );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user