Skip to content

Commit

Permalink
fixed typo in ScrollControls readme
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Equals-Zero committed Oct 28, 2022
1 parent fd90f05 commit 81895a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -392,13 +392,14 @@ function Foo(props) {
// Will move between 0-1-0 for the selected range
const d = data.curve(1 / 3, 1 / 3)
// Same as above, but with a margin of 0.1 on both ends
const d = data.curve(1 / 3, 1 / 3, 0.1)
const e = data.curve(1 / 3, 1 / 3, 0.1)
// Returns true if the offset is in range and false if it isn't
const e = data.visible(2 / 3, 1 / 3)
const f = data.visible(2 / 3, 1 / 3)
// The visible function can also receive a margin
const f = data.visible(2 / 3, 1 / 3, 0.1)
const g = data.visible(2 / 3, 1 / 3, 0.1)
})
return <mesh ref={ref} {...props} />
}
```

#### PresentationControls
Expand Down

0 comments on commit 81895a0

Please sign in to comment.