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

Set overscroll to contain for popup #1155

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented Jun 30, 2024

Fixes #1154

When the popup is scrolled to the very bottom and you continue to scroll this is overscroll. The default overscroll behavior is to start scrolling the parent scrollbar (in this case the parent page outside the popup) after the focused scroll element is at the bottom.

For the yomitan popup this doesn't make sense. Setting it to contain makes it so overscroll will do nothing and not propogate to the parent page.

(This change doesn't actually limit itself to the popup but all of our scrollable settings modals already use overscroll: contain anyways so theres no conflict)

@Kuuuube Kuuuube added kind/enhancement The issue or PR is a new feature or request area/ui-ux The issue or PR is related to UI/UX/Design labels Jun 30, 2024
@Kuuuube Kuuuube requested a review from a team as a code owner June 30, 2024 18:58
@jamesmaa jamesmaa added this pull request to the merge queue Jul 1, 2024
Merged via the queue into yomidevs:master with commit dd7a4de Jul 1, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design kind/enhancement The issue or PR is a new feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to contain overscroll
2 participants