feat: Wait for the next cycle to set a drag image, b=no-bug, c=no-component

This commit is contained in:
mr. m
2025-12-30 19:30:51 +01:00
parent bfee94c7bf
commit 07150962a2

View File

@@ -95,7 +95,9 @@
const { offsetX, offsetY } = this.#getDragImageOffset(event, tab, draggingTabs);
const dragImage = this.#createDragImageForTabs(draggingTabs);
this.originalDragImageArgs = [dragImage, offsetX, offsetY];
dt.setDragImage(...this.originalDragImageArgs);
setTimeout(() => {
dt.setDragImage(...this.originalDragImageArgs);
}, 0);
}
#createDragImageForTabs(movingTabs) {