@lijuhong1981/jsgif 1.0.8 → 1.0.9

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/index.js +3 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -464,13 +464,13 @@ function GifPlayer(options = {}) {
464
464
  function drawCurrentFrame() {
465
465
  const frame = FRAME_LIST[currentFrameIndex];
466
466
  drawFrame(frame);
467
+ if (typeof options.onFrameChanged === 'function') {
468
+ options.onFrameChanged(currentFrameIndex, frame);
469
+ }
467
470
  }
468
471
 
469
472
  function doFrame() {
470
473
  drawCurrentFrame();
471
- if (typeof options.onFrameChanged === 'function') {
472
- options.onFrameChanged(currentFrameIndex, frame);
473
- }
474
474
  setTimeout(function () {
475
475
  if (!isPlaying)
476
476
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lijuhong1981/jsgif",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "> TODO: description",
5
5
  "author": "lijuhong1981",
6
6
  "homepage": "https://github.com/lijuhong1981/jslibs#readme",
@@ -18,5 +18,5 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/lijuhong1981/jslibs/issues"
20
20
  },
21
- "gitHead": "41eaaf2e07770b704c80b27f40b0f033e80dfe9e"
21
+ "gitHead": "99cf51dfff7d8cfa8b3640e057b493c323eb1d40"
22
22
  }