Skip to content

Commit

Permalink
Bug fix: track vertical scroll is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Jan 14, 2025
1 parent 4331903 commit 343f487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/trackView.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class TrackView {

moveScroller(delta) {

const y = this.innerScroll.getBoundingClientRect().top + delta
const y = this.innerScroll.offsetTop + delta
const top = Math.min(Math.max(0, y), this.outerScroll.clientHeight - this.innerScroll.clientHeight)
this.innerScroll.style.top = `${top}px`;

Expand Down

0 comments on commit 343f487

Please sign in to comment.