From 81895a081e51d84b681b4ecb229d31aa5c021bb8 Mon Sep 17 00:00:00 2001 From: X-Equals-Zero Date: Fri, 28 Oct 2022 16:31:55 -0400 Subject: [PATCH] fixed typo in ScrollControls readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 594d64ea8..70516a2d3 100644 --- a/README.md +++ b/README.md @@ -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 +} ``` #### PresentationControls