mirror of
https://github.com/zen-browser/desktop.git
synced 2025-12-31 02:32:15 +00:00
feat: Wait for the next cycle to set a drag image, b=no-bug, c=no-component
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user