Skip to content

Commit

Permalink
Fix reset of maxIdx when using ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
rcbyr committed Jun 15, 2022
1 parent cf8b99c commit ecfd9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Track(
slides[absToRel(maxIdx)][2] === 0
) {
max = max - (1 - slides[absToRel(maxIdx)][0])
maxIdx = distToIdx(max)
maxIdx = distToIdx(max - position)
}
min = round(min)
max = round(max)
Expand Down

0 comments on commit ecfd9a4

Please sign in to comment.