mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix drag logic
This commit is contained in:
parent
5b51e0fad3
commit
d423c1c366
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ window._wails.endDrag = endDrag;
|
|||
|
||||
export function dragTest(e) {
|
||||
let val = window.getComputedStyle(e.target).getPropertyValue("--webkit-app-region");
|
||||
if (val && val.trim() !== "drag" || e.buttons !== 1) {
|
||||
if (!val || val === "" || val.trim() !== "drag" || e.buttons !== 1) {
|
||||
return false;
|
||||
}
|
||||
return e.detail === 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue