Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollIntoView improvements #639

Open
dvmoritzschoefl opened this issue Sep 26, 2023 · 0 comments
Open

scrollIntoView improvements #639

dvmoritzschoefl opened this issue Sep 26, 2023 · 0 comments
Assignees

Comments

@dvmoritzschoefl
Copy link

dvmoritzschoefl commented Sep 26, 2023

It would be great if the API would let me control how scrollIntoView works and is used.

User story
Currently when the API for scrolling to a specific row index is used, the HTMLElements scrollIntoView(true) is called. This is often times not sufficient, for example when

  • I want to control the parameters for scrollIntoView (smooth scrolling, block: 'nearest', etc...)
  • I want to not apply scrollIntoView at all, but use a scrollTop = ... calculation

Nice would be 2 seperate functions:

  • scrollIntoRow(indices, options) (calls scrollIntoView with the options)
  • setHorizontalScroll/setVerticalScroll in conjunction with getScrollOffset(rowIndex) (sets the scrollTop, scrollLeft property correctly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants