mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1498381 - EventUtils.js shouldn't dispatch artificial mouseup after dnd, r=masayuki
This commit is contained in:
parent
6782f178aa
commit
5e3c384cd7
@ -2335,8 +2335,6 @@ function synthesizeDropAfterDragOver(aResult, aDataTransfer, aDestElement, aDest
|
|||||||
sendDragEvent(event, aDestElement, aDestWindow);
|
sendDragEvent(event, aDestElement, aDestWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
synthesizeMouseAtCenter(aDestElement, { type: "mouseup" }, aDestWindow);
|
|
||||||
|
|
||||||
return effect;
|
return effect;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2465,7 +2463,6 @@ async function synthesizePlainDragAndDrop(aParams)
|
|||||||
|
|
||||||
await new Promise(r => setTimeout(r, 0));
|
await new Promise(r => setTimeout(r, 0));
|
||||||
|
|
||||||
synthesizeMouseAtCenter(destElement, { type: "mouseup" }, destWindow);
|
|
||||||
} finally {
|
} finally {
|
||||||
ds.endDragSession(true, 0);
|
ds.endDragSession(true, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user