fix: window drag taking precedence on windows
This commit is contained in:
@@ -20,6 +20,9 @@ import { ioDef } from "./platform/io"
|
|||||||
const headerPaddingLeft = ref("0px")
|
const headerPaddingLeft = ref("0px")
|
||||||
const headerPaddingTop = ref("0px")
|
const headerPaddingTop = ref("0px")
|
||||||
|
|
||||||
|
;(async () => {
|
||||||
|
const platform = await type()
|
||||||
|
|
||||||
createHoppApp("#app", {
|
createHoppApp("#app", {
|
||||||
ui: {
|
ui: {
|
||||||
additionalFooterMenuItems: stdFooterItems,
|
additionalFooterMenuItems: stdFooterItems,
|
||||||
@@ -28,9 +31,11 @@ createHoppApp("#app", {
|
|||||||
paddingLeft: headerPaddingLeft,
|
paddingLeft: headerPaddingLeft,
|
||||||
paddingTop: headerPaddingTop,
|
paddingTop: headerPaddingTop,
|
||||||
onHeaderAreaClick() {
|
onHeaderAreaClick() {
|
||||||
|
if (platform === "Darwin") {
|
||||||
// Drag thw window when the user drags the header area
|
// Drag thw window when the user drags the header area
|
||||||
// TODO: Ignore click on headers and fields
|
// TODO: Ignore click on headers and fields
|
||||||
appWindow.startDragging()
|
appWindow.startDragging()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -75,8 +80,6 @@ watch(
|
|||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
)
|
)
|
||||||
;(async () => {
|
|
||||||
const platform = await type()
|
|
||||||
|
|
||||||
if (platform === "Darwin") {
|
if (platform === "Darwin") {
|
||||||
listen("will-enter-fullscreen", () => {
|
listen("will-enter-fullscreen", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user