This commit is contained in:
2026-02-03 18:51:40 -07:00
parent be4b8fc3ee
commit 4ec597967a
9 changed files with 127 additions and 79 deletions

View File

@@ -43,9 +43,11 @@ export default function Sidebar () {
hidden={platform() != 'macos'}
onMouseDown={e => {
if (e.buttons === 1) {
e.detail === 2
? getCurrentWindow().toggleMaximize()
: getCurrentWindow().startDragging()
if (e.detail === 2) {
getCurrentWindow().toggleMaximize()
} else {
getCurrentWindow().startDragging()
}
}
}}
></div>
@@ -62,9 +64,11 @@ export default function Sidebar () {
onMouseDown={e => {
if (platform() != 'macos') return
if (e.buttons === 1) {
e.detail === 2
? getCurrentWindow().toggleMaximize()
: getCurrentWindow().startDragging()
if (e.detail === 2) {
getCurrentWindow().toggleMaximize()
} else {
getCurrentWindow().startDragging()
}
}
}}
>