From 81ff96537137577b6e262edb6c7d6c6d7c113100 Mon Sep 17 00:00:00 2001 From: tillvit Date: Tue, 10 Dec 2024 23:50:04 -0500 Subject: [PATCH] Fix invertReverseScroll acting in normal scroll --- app/src/chart/ChartManager.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/chart/ChartManager.ts b/app/src/chart/ChartManager.ts index f2e535a..43b2f6e 100644 --- a/app/src/chart/ChartManager.ts +++ b/app/src/chart/ChartManager.ts @@ -279,7 +279,11 @@ export class ChartManager { newbeat = this.beat + delta } else { if (Options.chart.scroll.scrollSnapEveryScroll) { - if (event.deltaY < 0 != Options.chart.scroll.invertReverseScroll) { + if ( + event.deltaY < 0 != + (Options.chart.scroll.invertReverseScroll && + Options.chart.reverse) + ) { newbeat = Math.round((this.beat - snap) / snap) * snap } else { newbeat = Math.round((this.beat + snap) / snap) * snap