This commit is contained in:
syuilo 2017-03-10 18:12:28 +09:00
parent 268a4f44b9
commit 31f4d6c0bf

View File

@ -359,10 +359,10 @@
}; };
this.ondragover = e => { this.ondragover = e => {
e.preventDefault();
e.stopPropagation(); e.stopPropagation();
this.draghover = true; this.draghover = true;
e.dataTransfer.dropEffect = e.dataTransfer.effectAllowed == 'all' ? 'copy' : 'move'; e.dataTransfer.dropEffect = e.dataTransfer.effectAllowed == 'all' ? 'copy' : 'move';
return false;
}; };
this.ondragenter = e => { this.ondragenter = e => {
@ -382,8 +382,6 @@
if (e.dataTransfer.files.length > 0) { if (e.dataTransfer.files.length > 0) {
e.dataTransfer.files.forEach(this.upload); e.dataTransfer.files.forEach(this.upload);
} }
return false;
}; };
this.onkeydown = e => { this.onkeydown = e => {