We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a398eb commit 67163bfCopy full SHA for 67163bf
src/use-position-fixed.ts
@@ -96,7 +96,9 @@ export function usePositionFixed({
96
if (nested || !hasBeenOpened) return;
97
// This is needed to force Safari toolbar to show **before** the drawer starts animating to prevent a gnarly shift from happening
98
if (isOpen) {
99
- setPositionFixed();
+ // avoid for standalone mode (PWA)
100
+ const isStandalone = window.matchMedia('(display-mode: standalone)').matches;
101
+ !isStandalone && setPositionFixed();
102
103
if (!modal) {
104
setTimeout(() => {
0 commit comments