We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eb4a3f commit 4f814c5Copy full SHA for 4f814c5
web/libs/editor/src/lib/AudioUltra/Visual/Layer.ts
@@ -272,6 +272,10 @@ export class Layer extends Events<LayerEvents> {
272
copyToBuffer() {
273
this.createBufferCanvas();
274
275
+ // This needs to be updated to ensure it has the same pixel ratio as the canvas it is copying from/to
276
+ this._bufferCanvas.width = this.canvas.width;
277
+ this._bufferCanvas.height = this.canvas.height;
278
+
279
// Copy the current canvas to the buffer
280
this._bufferContext.imageSmoothingEnabled = false;
281
this._bufferContext.clearRect(0, 0, this._bufferCanvas.width, this._bufferCanvas.height);
0 commit comments