@netless/app-slide 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/app-slide",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,8 +11,8 @@
11
11
  ],
12
12
  "devDependencies": {
13
13
  "@netless/app-shared": "^0.1.1",
14
- "@netless/slide": "^0.1.28",
15
- "side-effect-manager": "^0.1.4",
14
+ "@netless/slide": "^0.1.29",
15
+ "side-effect-manager": "^0.1.5",
16
16
  "vanilla-lazyload": "^17.5.0"
17
17
  },
18
18
  "scripts": {
@@ -35,5 +35,7 @@ export function syncSceneWithSlide(
35
35
  room.putScenes(baseScenePath, scenes);
36
36
  }
37
37
 
38
- context.setScenePath(scenePath);
38
+ if (context.getView()?.focusScenePath !== scenePath) {
39
+ context.setScenePath(scenePath);
40
+ }
39
41
  }
@@ -262,7 +262,7 @@ export class SlideController {
262
262
  this.sideEffect.flushAll();
263
263
  if (!this.destroyed) {
264
264
  if (this.debug) {
265
- console.log("[Slide] destroy (once)");
265
+ console.log("[Slide] destroy slide (once)");
266
266
  }
267
267
  this.slide.destroy();
268
268
  this.destroyed = true;
package/src/index.ts CHANGED
@@ -70,7 +70,7 @@ const SlideApp: NetlessApp<Attributes> = {
70
70
  box,
71
71
  view,
72
72
  mountSlideController,
73
- mountWhiteboard: dom => context.mountView(dom),
73
+ mountWhiteboard: context.mountView.bind(context),
74
74
  });
75
75
 
76
76
  if (import.meta.env.DEV) {