Skip to content

Commit

Permalink
Accept uninitialized effectAllowed on dragover #3374
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Sep 8, 2023
1 parent 1e92167 commit 304f858
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webextensions/sidebar/drag-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,8 +1050,7 @@ let mDelayedClearDropPosition = null;

function onDragOver(event) {
const dt = event.dataTransfer;
if (dt.types.length == 0 ||
dt.effectAllowed == 'uninitialized') {
if (dt.types.length == 0) {
// On Linux, unexpected invalid dragover events can be fired on various triggers unrelated to drag and drop.
// TST ignores such events as a workaround.
// See also: https://github.com/piroor/treestyletab/issues/3374
Expand Down

0 comments on commit 304f858

Please sign in to comment.