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

Auto Scroll #981

Open
ackava opened this issue Feb 21, 2025 · 0 comments
Open

Auto Scroll #981

ackava opened this issue Feb 21, 2025 · 0 comments

Comments

@ackava
Copy link

ackava commented Feb 21, 2025

It would be great if you can facility to scroll after the element is created, as shown below.

element.scrollIntoView({
    behavior: "smooth",
    inline: "nearest"
})

As if the container is at end of the page, the emojis are displayed behind the below the viewport. Since it takes time to download emoji list, if I add scrollIntoView after few milliseconds, it doesn't appear smooth as first it gets displayed, the layout changes and then page moves up.

Can you add property scrollIntoView that would accept parameters declared and you can call scrollIntoView after successful initialization.

Or is there any event/handler to check if the emoji view is initialized and added to dom?

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

1 participant