Skip to content

Commit

Permalink
fix(core): fix drag-region not sending its events correctly (#2196)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Jul 12, 2021
1 parent bc2c331 commit 578610a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-data-tauri-drag-region.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch
---

Fixes `data-tauri-drag-region` not firing its events.
7 changes: 6 additions & 1 deletion core/tauri/scripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,12 @@ if (!String.prototype.startsWith) {
{
__tauriModule: 'Window',
message: {
cmd: e.detail === 2 ? 'toggleMaximize' : 'startDragging'
cmd: 'manage',
data: {
cmd: {
type: e.detail === 2 ? 'toggleMaximize' : 'startDragging'
}
}
}
},
_KEY_VALUE_
Expand Down

0 comments on commit 578610a

Please sign in to comment.