Skip to content

Fix scrolling in settings#18

Open
groszdaniel wants to merge 1 commit intosunsetsonwheels:masterfrom
groszdaniel:settings
Open

Fix scrolling in settings#18
groszdaniel wants to merge 1 commit intosunsetsonwheels:masterfrom
groszdaniel:settings

Conversation

@groszdaniel
Copy link
Copy Markdown

The Settings menu scrolls weirdly when going down or up, compared to how one expects it to work from other systems. This fixes it by using a ponyfill for the scrollIntoViewIfNeeded method of Chromium-based browsers, or the block: "nearest" option of the scrollIntoView method of newer Firefox versions, which scroll the view by only as much as needed. (This is a common issue with list views in Kaios apps, including stock apps, since developers often use the plain scrollIntoView function, which is inappropriate for the purpose. I'm going to upload some patches on bananahackers to fix it where possible, using the same ponyfill.)

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