Skip to content

Commit 98e832f

Browse files
committed
fix: setScenePath must when isFirstRender time
1 parent 166133c commit 98e832f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app-slide/src/SlideController/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function renderSceneWithSlide(
9090
} else {
9191
currentScenePath = context.getView()?.focusScenePath || "";
9292
}
93-
if (currentScenePath !== scenePath && room.scenePathType(scenePath) === ("page" as ScenePathType.Page)) {
93+
if (isFirstRender && currentScenePath !== scenePath && room.scenePathType(scenePath) === ("page" as ScenePathType.Page)) {
9494
context.setScenePath(scenePath);
9595
}
9696

0 commit comments

Comments
 (0)