Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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 :/

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant