Skip to content

Commit

Permalink
Fix invert scroll in reverse when scroll snap is on
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Nov 22, 2024
1 parent a06c77f commit dba5119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/chart/ChartManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class ChartManager {
newbeat = this.beat + delta
} else {
if (Options.chart.scroll.scrollSnapEveryScroll) {
if (event.deltaY < 0) {
if (event.deltaY < 0 != Options.chart.scroll.invertReverseScroll) {
newbeat = Math.round((this.beat - snap) / snap) * snap
} else {
newbeat = Math.round((this.beat + snap) / snap) * snap
Expand Down

0 comments on commit dba5119

Please sign in to comment.