Skip to content

Commit

Permalink
fix: opaque bg firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienwnklr committed Oct 3, 2023
1 parent 01d204b commit e326f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class Drawer extends History {
`;
this.$canvas = stringToHTMLElement<HTMLCanvasElement>(canvas);
this.#cloneCanvas = this.$canvas.cloneNode() as HTMLCanvasElement;
this.ctx = this.$canvas.getContext('2d', { alpha: true, willReadFrequently: true }) as CanvasRenderingContext2D;
this.ctx = this.$canvas.getContext('2d', { willReadFrequently: true }) as CanvasRenderingContext2D;
this.ctx.globalAlpha = this.options.opacity;
this.$drawerContainer.appendChild(this.$canvas);
} catch (error: any) {
Expand Down

0 comments on commit e326f5b

Please sign in to comment.