Skip to content

Commit 8f0a045

Browse files
authored
docs(ScrollControls): fix typo and default value decription (#1757)
1 parent 8da6b24 commit 8f0a045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/web/ScrollControls.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import { ForwardRefComponent } from '../helpers/ts-utils'
1010
export type ScrollControlsProps = {
1111
/** Precision, default 0.00001 */
1212
eps?: number
13-
/** Horontal scroll, default false (vertical) */
13+
/** Horizontal scroll, default false (vertical) */
1414
horizontal?: boolean
1515
/** Infinite scroll, default false (experimental!) */
1616
infinite?: boolean
1717
/** Defines the lenght of the scroll area, each page is height:100%, default 1 */
1818
pages?: number
1919
/** A factor that increases scroll bar travel,default: 1 */
2020
distance?: number
21-
/** Friction in seconds, default: 0.2 (1/5 second) */
21+
/** Friction in seconds, default: 0.25 (1/4 second) */
2222
damping?: number
2323
/** maxSpeed optionally allows you to clamp the maximum speed. If damping is 0.2s and looks OK
2424
* going between, say, page 1 and 2, but not for pages far apart as it'll move very rapid,

0 commit comments

Comments
 (0)