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

feature/scroll-behavior: add ability to set scroll behavior when calling ref.scrollTo #1004

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Tintef
Copy link

@Tintef Tintef commented Nov 5, 2024

feature/scroll-behavior

What?

  • Accept behavior as part of the options object when calling scrollTo method
  • Accept behavior when calling appendRow

Why?

So we can have a smooth transition when programmatically adding a row or scrolling to a given cell.

The current way to do this, as far as I know, is adding a class with scroll-behavior: smooth to the editor, which causes arrow navigation to also have the smooth behavior which feels awful :/

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

Successfully merging this pull request may close these issues.

1 participant