fix(editor): dnd lag (#9378)

This commit is contained in:
Saul-Mirone
2024-12-27 10:33:59 +00:00
parent 12bfbf1db0
commit 5c4058cd73
2 changed files with 46 additions and 18 deletions

View File

@@ -273,6 +273,8 @@ class DragController extends PointerControllerBase {
};
private readonly _nativeDragOver = (event: DragEvent) => {
// prevent default to allow drop in editor
event.preventDefault();
const dndEventState = new DndEventState({ event });
this._dispatcher.run(
'nativeDragOver',