Ctrl+Shift+Drag zoom on mouse position (#538) (#541)

* Ctrl+Shift+Drag zoom on mouse position (#538)

* Update test expectations [skip ci]

---------

Co-authored-by: bymyself <abolkonsky.rem@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-08-19 17:08:50 -04:00
committed by GitHub
parent 2252f0a134
commit 45a47be7c0
5 changed files with 19 additions and 2 deletions

View File

@@ -1245,8 +1245,8 @@ export class ComfyApp {
let scale = startScale - deltaY / 100
this.ds.changeScale(scale, [
this.ds.element.width / 2,
this.ds.element.height / 2
self.zoom_drag_start[0],
self.zoom_drag_start[1]
])
this.graph.change()