Skip to content

Commit

Permalink
Correct lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cetinkaya committed May 9, 2019
1 parent d9499e3 commit dd962d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/targetFinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export function TargetFinder(params: Params): TargetFinder {

function getSlideBoundaries(): Boundary[] {
const startAt = slidePositions[0] + slideSizes[0] / 2
return slideSizes.map((slideSize, i) => {
const sizes = slideSizes.slice(0, i)
return slideSizes.map((slideSize, index) => {
const sizes = slideSizes.slice(0, index)
const start = sizes.reduce((a, i) => a - i, startAt)
const end = start - slideSize
return { end, start }
Expand Down

0 comments on commit dd962d8

Please sign in to comment.