@netless/app-slide 0.2.45-alpha.1 → 0.2.45-alpha.2
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/dist/index.d.ts +1 -0
- package/dist/main.cjs.js +2 -2
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +4 -1
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +2 -2
- package/dist/main.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/SlideDocsViewer/index.ts +6 -0
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -180,6 +180,12 @@ export class SlideDocsViewer {
|
|
|
180
180
|
};
|
|
181
181
|
|
|
182
182
|
protected onRenderEnd = () => {
|
|
183
|
+
// 1. There's no render end event on initial render.
|
|
184
|
+
// 2. The end event is fired before the page changed event.
|
|
185
|
+
// So in this callback we will do nothing and we do all "end" works in onPageChanged.
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
public onPageChanged = () => {
|
|
183
189
|
this.$overlay.style.opacity = "";
|
|
184
190
|
this.$whiteboardView.classList.remove(this.wrapClassName("wb-view-hidden"));
|
|
185
191
|
};
|
package/src/index.ts
CHANGED