diff --git a/src/decode-frames.ts b/src/decode-frames.ts index 8799cf5..fb95fb2 100644 --- a/src/decode-frames.ts +++ b/src/decode-frames.ts @@ -100,7 +100,7 @@ export function decodeFrames(source: BufferSource, options?: DecodeFramesOptions for (let x = 0; x < width; x++) { const colorIndex = colorIndexs[localOffset + x] if ( - disposal === 2 + previousDisposal === 2 || (colorIndex !== transparentIndex) ) { const index = (globalOffset + x) * 4