Skip to content

Commit 8215352

Browse files
committed
Update live-view.js
1 parent 08135fe commit 8215352

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

live-view/live-view.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,17 @@ async function setupLiveView() {
177177

178178
// don't transition live view
179179
liveView.classList.add('notransition');
180-
181-
// hide live view
182-
liveView.classList.remove('visible');
183-
184-
// restore transition on next frame
180+
185181
onNextFrame(() => {
186-
liveView.classList.remove('notransition');
182+
183+
// hide live view
184+
liveView.classList.remove('visible');
185+
186+
// restore transition on next frame
187+
onNextFrame(() => {
188+
liveView.classList.remove('notransition');
189+
});
190+
187191
});
188192

189193
}

0 commit comments

Comments
 (0)