You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,7 +248,7 @@ It also ensures that the scroll event is propagated properly to parent ScrollVie
248
248
|`orientation`|`'horizontal' \| 'vertical'`| The orientation of the list. Defaults to `'horizontal'`. |
249
249
|`nbMaxOfItems`|`number`| The total number of expected items for infinite scroll. This helps with aligning items and is used for pagination. If not provided, it defaults to the length of the data array. |
250
250
|`scrollDuration`|`number`| The duration of a scrolling animation inside the VirtualizedList. Defaults to 200ms. |
251
-
|`scrollBehavior`|`'stick-to-start' \| 'stick-to-end' \| 'jump-on-scroll'`| Determines the scrolling behavior. Defaults to `'stick-to-start'`. `'stick-to-start'` and `'stick-to-end'` fix the focused item at the beginning or the end of the visible items on screen. `jump-on-scroll` jumps from `numberOfItemsVisibleOnScreen` items when needed. Warning `jump-on-scroll` is not compatible with dynamic item size. |
251
+
|`scrollBehavior`|`'stick-to-start' \| 'stick-to-center' \| 'stick-to-end' \| 'jump-on-scroll'`| Determines the scrolling behavior. Defaults to `'stick-to-start'`. `'stick-to-start'` and `'stick-to-end'` fix the focused item at the beginning or the end of the visible items on screen. `'stick-to-end'` fixes the item at the center of the screen when possible, otherwise sticking to the sides of the list instead. `jump-on-scroll` jumps from `numberOfItemsVisibleOnScreen` items when needed. Warning `jump-on-scroll` is not compatible with dynamic item size. |
252
252
|`ascendingArrow`|`ReactElement`| For web TVs cursor handling. Optional component to display as the arrow to scroll on the ascending order. |
253
253
|`ascendingArrowContainerStyle`|`ViewStyle`| For web TVs cursor handling. Style of the view which wraps the ascending arrow. Hover this view will trigger the scroll. |
254
254
|`descendingArrow`|`ReactElement`| For web TVs cursor handling. Optional component to display as the arrow to scroll on the descending order. |
it('handles correctly RIGHT and RENDERS new elements accordingly while deleting elements that are too far from scroll when on stick to end scroll',async()=>{
0 commit comments