Skip to content

Commit 4ee5925

Browse files
committed
Portal.view.ViewportController: setMainContentIndex() => only use the first timeout for cube layout switches #6700
1 parent dd93512 commit 4ee5925

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/portal/view/ViewportController.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,10 @@ class ViewportController extends Controller {
316316

317317
// enable "fast clicking" on main nav items => do not replace a cube layout with a new instance of cube
318318
if (container.layout.ntype !== 'layout-cube') {
319-
container.layout = {ntype: 'cube', activeIndex, fitContainer: true, hideInactiveCardsOnDestroy: true}
319+
container.layout = {ntype: 'cube', activeIndex, fitContainer: true, hideInactiveCardsOnDestroy: true};
320+
await me.timeout(200);
320321
}
321322

322-
await me.timeout(200);
323-
324323
container.layout.activeIndex = index;
325324

326325
await me.timeout(1100);

0 commit comments

Comments
 (0)