Skip to content
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

Support scroll padding #3

Closed
richardscarrott opened this issue Jan 13, 2023 · 1 comment
Closed

Support scroll padding #3

richardscarrott opened this issue Jan 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@richardscarrott
Copy link
Owner

Currently scroll padding isn't factored in when computing the pages.

Some common scenarios include:

Scenario 1:

.scroll {
  scroll-padding: 0 100px;
}

Scenario 2:

.scroll {
  scroll-padding: 0 100px;
  padding: 0 100px; /* Allows the scroll-padding to take effect on the first item */
}

Also need to handle scroll-margin which is declared on an item & I think is calculated in addition to scroll padding.

@richardscarrott richardscarrott added the enhancement New feature or request label Jan 14, 2023
richardscarrott added a commit that referenced this issue Feb 14, 2023
richardscarrott added a commit that referenced this issue Feb 14, 2023
@richardscarrott
Copy link
Owner Author

Released in 0.3.0

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

No branches or pull requests

1 participant