@evqovs/danmaku 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/dist/danmaku.js +1 -1
  2. package/package.json +1 -1
package/dist/danmaku.js CHANGED
@@ -212,7 +212,7 @@ class DanmakuItem {
212
212
  }
213
213
  this.recorder.start_time = now();
214
214
  this.set_style('transition', `transform ${this.duration}ms linear`);
215
- this.set_style('transform', `translateX(${this.destination}px)`);
215
+ next_frame(() => this.set_style('transform', `translateX(${this.destination}px)`));
216
216
  this.status = 'running';
217
217
  this.plugin_system.lifecycle.start.emit(this);
218
218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evqovs/danmaku",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A lightweight ESM-based danmaku library.",
5
5
  "type": "module",
6
6
  "exports": {