Skip to content

Commit

Permalink
fix(wasm): unwanted preview shown when dragging over existing selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoy312 committed Nov 26, 2024
1 parent 77d05b1 commit fb0185a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
//document.addEventListener("dragstart", this._dragHandler);
//document.addEventListener("drag", this._dragHandler);
//document.addEventListener("dragend", this._dragHandler);

// #18854: Prevent the browser default selection drag preview.
document.addEventListener('dragstart', e => e.preventDefault());
}

public dispose() {
Expand Down

0 comments on commit fb0185a

Please sign in to comment.