bugfix/linux framless window drag (#1916)

This commit is contained in:
Zámbó, Levente 2022-09-29 16:06:11 +02:00 committed by GitHub
commit b1e04772d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 49 deletions

View file

@ -122,6 +122,11 @@ function setResize(cursor) {
}
window.addEventListener('mousemove', function (e) {
let mousePressed = e.buttons !== undefined ? e.buttons : e.which;
if(window.wails.flags.shouldDrag && mousePressed <= 0) {
window.wails.flags.shouldDrag = false;
}
if (window.wails.flags.shouldDrag) {
window.WailsInvoke("drag");
return;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long