Merge branch 'main' into joh/voluminous-lobster

This commit is contained in:
Johannes
2022-06-10 09:07:30 +02:00
115 changed files with 2137 additions and 1993 deletions

View File

@@ -1733,9 +1733,7 @@ export class DragAndDropObserver extends Disposable {
this._register(addDisposableListener(this.element, EventType.DRAG_OVER, (e: DragEvent) => {
e.preventDefault(); // needed so that the drop event fires (https://stackoverflow.com/questions/21339924/drop-event-not-firing-in-chrome)
if (this.callbacks.onDragOver) {
this.callbacks.onDragOver(e, e.timeStamp - this.dragStartTime);
}
this.callbacks.onDragOver?.(e, e.timeStamp - this.dragStartTime);
}));
this._register(addDisposableListener(this.element, EventType.DRAG_LEAVE, (e: DragEvent) => {