-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
281 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Interface: ScrollToIndexOpts | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [align](ScrollToIndexOpts.md#align) | ||
- [smooth](ScrollToIndexOpts.md#smooth) | ||
|
||
## Properties | ||
|
||
### align | ||
|
||
• `Optional` **align**: [`ScrollToIndexAlign`](../API.md#scrolltoindexalign) | ||
|
||
Alignment of item. | ||
|
||
- `start`(default): Align the item to the start of the list. | ||
- `center`: Align the item to the center of the list. | ||
- `end`: Align the item to the end of the list. | ||
|
||
#### Defined in | ||
|
||
[src/core/types.ts:29](https://github.com/inokawa/virtua/blob/de2ef090/src/core/types.ts#L29) | ||
|
||
___ | ||
|
||
### smooth | ||
|
||
• `Optional` **smooth**: `boolean` | ||
|
||
If true, scrolling animates smoothly with [`behavior: smooth` of scrollTo](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo#behavior). | ||
|
||
**Using smooth scrolling over many items can kill performance benefit of virtual scroll. Do not overuse it.** | ||
|
||
#### Defined in | ||
|
||
[src/core/types.ts:35](https://github.com/inokawa/virtua/blob/de2ef090/src/core/types.ts#L35) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.