Skip to content

Commit

Permalink
Fix invertReverseScroll acting in normal scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Dec 11, 2024
1 parent 88c1a10 commit 81ff965
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/chart/ChartManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81ff965

Please sign in to comment.