Skip to content

Commit 5e33b72

Browse files
authored
feat: support clicking title bar to maxmize the OS desktop window (casibase#1367)
1 parent accac8a commit 5e33b72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/src/OsDesktop.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ const Window = ({id, title, isMaximized, isMinimized, zIndex, position, onClose,
140140
className="window-header"
141141
{...attributes}
142142
{...listeners}
143+
onDoubleClick={(e) => {
144+
e.stopPropagation();
145+
onMaximize();
146+
}}
143147
>
144148
<div className="window-navigation">
145149
<Button

0 commit comments

Comments
 (0)