[FIX #988] Disable drag and drop
This commit is contained in:
parent
53a58ff073
commit
9011996d69
1 changed files with 6 additions and 0 deletions
|
@ -62,6 +62,12 @@ ipcRenderer.on('window-is-focused', () => {
|
||||||
dock.setBadge('');
|
dock.setBadge('');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.addEventListener('dragover', event => {
|
||||||
|
event.preventDefault();
|
||||||
|
})
|
||||||
|
document.addEventListener('drop', event => {
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
document.addEventListener('click', event => {
|
document.addEventListener('click', event => {
|
||||||
let { target } = event;
|
let { target } = event;
|
||||||
while (target && target !== document) {
|
while (target && target !== document) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue