@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/forge-slide",
3
- "version": "0.1.1-alpha.0",
3
+ "version": "0.1.1-alpha.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -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";