Skip to content

Commit 383f9fe

Browse files
committed
Fix: Don't show drag menu if the event comes from the app
1 parent 9352e3a commit 383f9fe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1313
##### 🐛 Bug Fixes
1414

1515
- Scroll does not work correctly when zooming and then resizing the window [`65a447c`](https://github.com/ollm/OpenComic/commit/65a447c1ce395214b1f787e5eb0824f003655f11)
16-
- Support S3 path connection
16+
- Support S3 path connection [`ec1340d`](https://github.com/ollm/OpenComic/commit/ec1340dc9cd29f6ed73e95d6776e406d2ba75d6e)
17+
- S3 connection does not work correctly in Windows [`9352e3a`](https://github.com/ollm/OpenComic/commit/9352e3a388a4a1aea2f45155d72d057172808d56)
18+
- Don't show drag menu if the event comes from the app
1719

1820

1921
## [v1.2.0](https://github.com/ollm/OpenComic/releases/tag/v1.2.0) (29-03-2024)

scripts/drag-and-drop.js

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ function showDropZone(event)
99
clearTimeout(hideDropZoneST);
1010
clearTimeout(showDropZoneST);
1111

12+
if(!event.dataTransfer.types.includes('Files') || event.dataTransfer.types.includes('text/html')) return;
13+
1214
allowDrag(event);
1315

1416
let dropZone = document.querySelector('.drop-zone');

0 commit comments

Comments
 (0)