@netless/slide 0.5.2 → 0.5.3

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/README.md CHANGED
@@ -593,3 +593,6 @@ const slide = new Slide({
593
593
 
594
594
  #### 0.5.2
595
595
  * CanvasCrash 类型错误新增一种情况(切页动画渲染器创建失败)
596
+
597
+ #### 0.5.3
598
+ * 修复页面切到后台后无法冻结的问题
@@ -8,13 +8,13 @@ var FrozenTaskManager = /** @class */ (function () {
8
8
  if (task && !_this.isDestroy) {
9
9
  task.status = "running";
10
10
  task.fn.apply(null).then(function () {
11
- window.requestAnimationFrame(_this.schedule);
11
+ window.setTimeout(_this.schedule);
12
12
  }).catch(function () {
13
- window.requestAnimationFrame(_this.schedule);
13
+ window.setTimeout(_this.schedule);
14
14
  });
15
15
  }
16
16
  else {
17
- window.requestAnimationFrame(_this.schedule);
17
+ window.setTimeout(_this.schedule);
18
18
  }
19
19
  };
20
20
  this.schedule();