@netless/forge-slide 0.1.1-alpha.0 → 0.1.1-alpha.1
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/SlideApplication.d.ts.map +1 -1
- package/dist/index.esm.js +1 -3
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +1 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/SlideApplication.ts +1 -4
package/package.json
CHANGED
package/src/SlideApplication.ts
CHANGED
|
@@ -128,10 +128,6 @@ export class SlideApplication extends AbstractApplication<SlideApplicationOption
|
|
|
128
128
|
|
|
129
129
|
this.rootView.appendChild(this.contentContainer);
|
|
130
130
|
|
|
131
|
-
this.permissions.on("change", (userId, flags, value) => {
|
|
132
|
-
this.emitter.emit("permissionChange", userId, flags, value);
|
|
133
|
-
})
|
|
134
|
-
|
|
135
131
|
this.emitter.on("renderStart", pageIndex => {
|
|
136
132
|
this.footer.prevPageState(pageIndex !== 0);
|
|
137
133
|
});
|
|
@@ -429,6 +425,7 @@ export class SlideApplication extends AbstractApplication<SlideApplicationOption
|
|
|
429
425
|
return this.userMap(userId);
|
|
430
426
|
});
|
|
431
427
|
this.permissions.on("change", (userId, flags, value) => {
|
|
428
|
+
this.emitter.emit("permissionChange", userId, flags, value);
|
|
432
429
|
if (this.userId === userId) {
|
|
433
430
|
if (flags.includes(ForgeSlidePermissionFlag.clickAnim)) {
|
|
434
431
|
this.slideContainer.style.pointerEvents = "auto";
|