Skip to content

Commit eaecf92

Browse files
authored
chore: apply suggestions from code review
1 parent 2bb2cbb commit eaecf92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ The easing to be used when animating. Read more in the [Easing section](#easing-
200200
*Default:* `ease`
201201

202202
#### lazy
203-
Recalculating targetY/targetX at each scroll step. Useful when you don't know the final height of the container, and it grows as it scrolls.
203+
By default targetX/targetY are calculated once at the start of a scroll, however if the target may shift around during the scroll - setting `lazy` to `false` will force recalculation of targetX/targetY at each scroll step.
204204

205205
*Default:* `true`
206206

src/scrollTo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const scroller = () => {
3535
let container // container to scroll
3636
let duration // duration of the scrolling
3737
let easing // easing to be used when scrolling
38-
let lazy //checks the target position at each step
38+
let lazy // checks the target position at each step
3939
let offset // offset to be added (subtracted)
4040
let force // force scroll, even if element is visible
4141
let cancelable // indicates if user can cancel the scroll or not.

0 commit comments

Comments
 (0)