Skip to content

Commit

Permalink
Fix upperbound/lowerbound on reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Jun 11, 2024
1 parent f5fe49d commit 01aa91e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/chart/ChartRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,8 @@ export class ChartRenderer extends Container<ChartRendererComponent> {
break
if (
(scroll?.value ?? 1) * sign < 0 &&
scrollEndYPos < lowerBound &&
(scrollStartYPos > lowerBound ||
scrollEndYPos < upperBound &&
(scrollStartYPos > upperBound ||
!scrolls[scrollIndex - 1] ||
scrolls[scrollIndex - 1].beat <
this.getVisualBeat() - Options.chart.maxDrawBeatsBack ||
Expand Down Expand Up @@ -765,8 +765,8 @@ export class ChartRenderer extends Container<ChartRendererComponent> {
break
if (
(scroll?.value ?? 1) * sign < 0 &&
scrollStartYPos > upperBound &&
(scrollEndYPos < upperBound ||
scrollStartYPos > lowerBound &&
(scrollEndYPos < lowerBound ||
!scrolls[scrollIndex + 1] ||
scrolls[scrollIndex + 1].beat >
this.getVisualBeat() + Options.chart.maxDrawBeatsBack ||
Expand Down

0 comments on commit 01aa91e

Please sign in to comment.