Skip to content

Commit 65fdccb

Browse files
committed
Update bottomfloat.js
1 parent da86841 commit 65fdccb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bottomfloat.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,11 @@ if (isMobile) {
125125

126126
landscape.addEventListener('change', () => {
127127

128-
onNextFrame(() => {
128+
bottomWrapper.style.setProperty('--window-height', window.innerHeight + 'px');
129+
130+
window.setTimeout(() => {
129131
bottomWrapper.style.setProperty('--window-height', window.innerHeight + 'px');
130-
});
132+
}, 20);
131133

132134
});
133135

0 commit comments

Comments
 (0)