From 70899855ec38abf69a276f1844697cc4cb599ffb Mon Sep 17 00:00:00 2001 From: Schalk Venter Date: Mon, 2 Sep 2024 12:10:00 +0200 Subject: [PATCH] Changes couple of words --- docs/api/virtualizer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/virtualizer.md b/docs/api/virtualizer.md index a8af88f2..53014967 100644 --- a/docs/api/virtualizer.md +++ b/docs/api/virtualizer.md @@ -154,7 +154,7 @@ scrollToFn?: ( ) => void ``` -An optional function that (if provided) should implement the scrolling behavior for your scrollElement. It will be called with the following: An offset to scroll towards; a boolean indicating if scrolling is allowed to be smoothed; and the virtualizer instance. Built-in scroll implementations are exported as `elementScroll` and `windowScroll` which are automatically configured for you by your framework adapter's exported functions like `useVirtualizer` or `useWindowVirtualizer`. +An optional function that (if provided) should implement the scrolling behavior for your scrollElement. It will be called with the following: An offset to scroll towards; a boolean indicating whether scrolling can be smoothed; and the virtualizer instance itself. Built-in scroll implementations are exported as `elementScroll` and `windowScroll` which are automatically configured for you by your framework adapter's exported functions like `useVirtualizer` or `useWindowVirtualizer`. > ⚠️ Attempting to use smoothScroll with dynamically measured elements will not work.