🐛 优化拖动时候的容易选中的bug

This commit is contained in:
Tw93
2023-04-06 00:05:14 +08:00
parent 72645f9cf5
commit 7780c30f45
2 changed files with 3 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ document.addEventListener('DOMContentLoaded', () => {
const domEl = document.getElementById('pack-top-dom');
domEl.addEventListener('mousedown', (e) => {
e.preventDefault();
if (e.buttons === 1 && e.detail !== 2) {
invoke('drag_window');
}