@lijuhong1981/jsgif 1.0.4 → 1.0.5
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/index.js +3 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -461,6 +461,9 @@ function GifPlayer(options = {}) {
|
|
|
461
461
|
function doCurrentFrame() {
|
|
462
462
|
const frame = FRAME_LIST[currentFrameIndex];
|
|
463
463
|
drawFrame(frame);
|
|
464
|
+
if (typeof options.onFrameChanged === 'function') {
|
|
465
|
+
options.onFrameChanged(currentFrameIndex, frame);
|
|
466
|
+
}
|
|
464
467
|
setTimeout(function () {
|
|
465
468
|
if (!isPlaying)
|
|
466
469
|
return;
|