Merge pull request #1056 from ykris45/patch-1
[FIX #988] Disable drag and drop
This commit is contained in:
commit
7bb788cb31
2 changed files with 7 additions and 1 deletions
|
@ -19,7 +19,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
|
|||
* Fixed sort by date of published content ([#986](https://github.com/lbryio/lbry-app/issues/986))
|
||||
* Fix night mode start time, set to 9PM (#1050)
|
||||
* Fix night mode start time, set to 9PM ([#1050](https://github.com/lbryio/lbry-app/issues/1050))
|
||||
*
|
||||
* Disable drag and drop of files into the app ([#1045](https://github.com/lbryio/lbry-app/pull/1045))
|
||||
|
||||
### Deprecated
|
||||
*
|
||||
|
|
|
@ -62,6 +62,12 @@ ipcRenderer.on('window-is-focused', () => {
|
|||
dock.setBadge('');
|
||||
});
|
||||
|
||||
document.addEventListener('dragover', event => {
|
||||
event.preventDefault();
|
||||
})
|
||||
document.addEventListener('drop', event => {
|
||||
event.preventDefault();
|
||||
});
|
||||
document.addEventListener('click', event => {
|
||||
let { target } = event;
|
||||
while (target && target !== document) {
|
||||
|
|
Loading…
Reference in a new issue