From 2fdb3c23916ce548a50d9f8d41a9b0d1724e43a7 Mon Sep 17 00:00:00 2001 From: tillvit Date: Wed, 27 Dec 2023 18:23:21 -0800 Subject: [PATCH] Update waveform on width change --- app/src/chart/component/edit/Waveform.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/chart/component/edit/Waveform.ts b/app/src/chart/component/edit/Waveform.ts index d02ac79a..dbff1dbf 100644 --- a/app/src/chart/component/edit/Waveform.ts +++ b/app/src/chart/component/edit/Waveform.ts @@ -82,6 +82,10 @@ export class Waveform extends Sprite implements ChartRendererComponent { this.filters = value ? [new FXAAFilter()] : [] } ) + this.trackVariable( + () => this.renderer.chartManager.app.renderer.screen.width, + () => this.resizeWaveform() + ) this.trackVariable( () => this.renderer.chartManager.app.renderer.screen.height, () => this.resizeWaveform()