Skip to content

Commit fcdb321

Browse files
authored
Merge pull request #5484 from frigorific44/main
Fixed GIF Freezing After Returning to Unfocused Tab
2 parents d28b8ca + 5f3737f commit fcdb321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image/p5.Image.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ p5.Image = function(width, height) {
224224
*/
225225
p5.Image.prototype._animateGif = function(pInst) {
226226
const props = this.gifProperties;
227-
const curTime = pInst._lastFrameTime + pInst.deltaTime;
227+
const curTime = pInst._lastFrameTime;
228228
if (props.lastChangeTime === 0) {
229229
props.lastChangeTime = curTime;
230230
}

0 commit comments

Comments
 (0)