bugfix/linux framless window drag (#1916)

This commit is contained in:
Zámbó, Levente
2022-09-30 00:06:11 +10:00
committed by GitHub
parent 941218d1c8
commit b1e04772d9
4 changed files with 22 additions and 49 deletions
@@ -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