mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
Fix control + mouse-wheel zoom in trackpad mode (#1093)
This commit is contained in:
@@ -3182,7 +3182,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
|
||||
LiteGraph.macTrackpadGestures &&
|
||||
(!LiteGraph.macGesturesRequireMac || navigator.userAgent.includes("Mac"))
|
||||
) {
|
||||
if (e.ctrlKey && !Number.isInteger(e.deltaY)) {
|
||||
if (e.ctrlKey) {
|
||||
scale *= 1 + e.deltaY * (1 - this.zoom_speed) * 0.18
|
||||
this.ds.changeScale(scale, [e.clientX, e.clientY], false)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user