🐛 优化拖动时候的容易选中的bug
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
@@ -237,8 +237,9 @@ window.addEventListener('DOMContentLoaded', (_event) => {
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
cursor: grab;
|
||||
cursor: -webkit-grab;
|
||||
-webkit-app-region: drag;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
z-index: 90000;
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user