mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
Add option to disable ctrl + shift + zoom (#1545)
* Add option to disable ctrl + shift + zoom Minor change to default behaviour: zoom no longer triggers if alt key is also down. * Update coreSettings.ts Next release will be 1.4.0 to leave room for patches in 1.3 stable after today's main repo sync. --------- Co-authored-by: Chenlei Hu <huchenlei@proton.me>
This commit is contained in:
@@ -1227,7 +1227,8 @@ export class ComfyApp {
|
||||
const origProcessMouseDown = LGraphCanvas.prototype.processMouseDown
|
||||
LGraphCanvas.prototype.processMouseDown = function (e) {
|
||||
// prepare for ctrl+shift drag: zoom start
|
||||
if (e.ctrlKey && e.shiftKey && e.buttons) {
|
||||
const useFastZoom = useSettingStore().get('Comfy.Graph.CtrlShiftZoom')
|
||||
if (useFastZoom && e.ctrlKey && e.shiftKey && !e.altKey && e.buttons) {
|
||||
self.zoom_drag_start = [e.x, e.y, this.ds.scale]
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user