mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-23 17:00:38 +00:00
Lots of small improvements, websockets fallback
This commit is contained in:
@@ -25,7 +25,7 @@ Chat.FileDropBehaviorImpl = {
|
||||
dropZone.addEventListener('drop', function(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
|
||||
//call dragend
|
||||
dragEnd();
|
||||
|
||||
@@ -36,5 +36,13 @@ Chat.FileDropBehaviorImpl = {
|
||||
});
|
||||
}
|
||||
};
|
||||
document.body.addEventListener('dragover', function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}, false);
|
||||
document.body.addEventListener('drop', function(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
});
|
||||
Chat.FileDropBehavior = [Chat.FileDropBehaviorImpl, Chat.FileSelectionBehavior];
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user