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

Implement native scroll containers in HTML renderer #54

Merged
merged 6 commits into from
Dec 18, 2024

Conversation

nicbarker
Copy link
Owner

@nicbarker nicbarker commented Dec 16, 2024

This PR adds support for native overflow: scroll containers to the HTML renderer, which significantly improves scrolling performance for older devices and safari.

See it in action right now at https://nicbarker.com/clay

Essentially I'm reversing the source of truth - Clay has a new API to call to query the current scroll position of containers, and it's up to the HTML side to actually perform the scrolling.

This has the natural side effect of creating out of the box support for all types of scrolling and customisation naturally supported by the browser, e.g. configurable scroll speed, support for HOME / END keys, etc.

@nicbarker nicbarker merged commit 18f06e5 into main Dec 18, 2024
3 checks passed
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