Skip to content

Commit

Permalink
Update waveform on width change
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Dec 28, 2023
1 parent f71f0b3 commit 2fdb3c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/chart/component/edit/Waveform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2fdb3c2

Please sign in to comment.