Skip to content

Commit 04d287b

Browse files
committed
fix(app): avoid late fullscreen inset animation
Electron emits macOS fullscreen events after the native transition completes, so animating the inset from those events delayed its alignment with the traffic lights.
1 parent 6822ac8 commit 04d287b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/app/src/components/titlebar.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ export function Titlebar(props: { update?: TitlebarUpdate; debugTools?: { visibl
161161
"h-9 bg-v2-background-bg-deep overflow-visible": useV2Titlebar(),
162162
"h-10 bg-background-base overflow-hidden": !useV2Titlebar(),
163163
"order-last": bottom(),
164-
// Track the macOS fullscreen transition while the traffic lights animate away.
165-
"transition-[padding-left] duration-[240ms] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none":
166-
mac(),
167164
}}
168165
style={{
169166
"min-height": minHeight(),

0 commit comments

Comments
 (0)