Skip to content

Commit 38dbdd2

Browse files
committed
Ensure bars are split only in "wide" bandwidth
1 parent 920ee7a commit 38dbdd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/webamp/js/components/VisPainter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ export class BarPaintHandler extends VisPaintHandler {
376376
4;
377377
this.saData[x] = this.uVar12;
378378
} else {
379+
this.chunk = 0;
379380
this.saData[x] = this.sample[x];
380381
}
381382

@@ -425,7 +426,7 @@ export class BarPaintHandler extends VisPaintHandler {
425426
}
426427

427428
// skip rendering if x is 4
428-
if (!(x == this.chunk + 3)) {
429+
if (!(x === this.chunk + 3 && this._vis.bandwidth === "wide")) {
429430
this.paintBar(
430431
ctx,
431432
x,

0 commit comments

Comments
 (0)