Skip to content

Commit e409d26

Browse files
ahzvenolHardyNLee
andauthored
refactor: enable willReadFrequently
Co-authored-by: HardyNLee <hardy--lee@outlook.com>
1 parent 01dc514 commit e409d26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/webgal/src/Core/controller/stage/pixi/GifResource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class GifResource extends BaseImageResource {
7676
if (!gifFrames.length) throw new Error('Invalid GIF file');
7777

7878
const canvas = document.createElement('canvas');
79-
const ctx = canvas.getContext('2d')!;
79+
const ctx = canvas.getContext('2d', { willReadFrequently: true })!;
8080
const patchCanvas = document.createElement('canvas');
8181
const patchCtx = patchCanvas.getContext('2d')!;
8282

0 commit comments

Comments
 (0)