mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
bugfix/linux framless window drag (#1916)
This commit is contained in:
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
Loading…
Add table
Add a link
Reference in a new issue