Skip to content

Commit d4c378b

Browse files
committed
fix: update dragging things pos when wheeling
1 parent d6e703b commit d4c378b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/visual-flow/src/model/graph.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,8 @@ export class Graph {
621621

622622
this.boardScale = newScale;
623623

624+
this.syncGraphAndBoardMousePos();
625+
this.onMouseMove(this.mouseDown, false);
624626
this.updatePosition();
625627
return true;
626628
}
@@ -862,12 +864,16 @@ export class Graph {
862864

863865
onHorizontalScroll(delta: number) {
864866
this.boardOffsetX += delta / this.boardScale;
867+
this.syncGraphAndBoardMousePos();
868+
this.onMouseMove(this.mouseDown, false);
865869
this.updatePosition();
866870
return true;
867871
}
868872

869873
onVerticalScroll(delta: number) {
870874
this.boardOffsetY += delta / this.boardScale;
875+
this.syncGraphAndBoardMousePos();
876+
this.onMouseMove(this.mouseDown, false);
871877
this.updatePosition();
872878
return true;
873879
}

0 commit comments

Comments
 (0)