feat: add pasted elements to frame under cursor (#7590)

This commit is contained in:
David Luzar
2024-01-21 14:01:43 +01:00
committed by GitHub
parent 46da032626
commit 1e7df58b5b
4 changed files with 56 additions and 2 deletions
+2
View File
@@ -206,6 +206,8 @@ export class Pointer {
moveTo(x: number = this.clientX, y: number = this.clientY) {
this.clientX = x;
this.clientY = y;
// fire "mousemove" to update editor cursor position
fireEvent.mouseMove(document, this.getEvent());
fireEvent.pointerMove(GlobalTestState.interactiveCanvas, this.getEvent());
}