Skip to content

Conversation

@thet
Copy link
Member

@thet thet commented Dec 6, 2022

Follow-up from: #1094
Fixes: #1083

thet added 3 commits December 6, 2022 17:22
On the viewport as scrolling container paddings and margins are not
influencing the sticky element's position. This is contrary to other
scrolling containers within the document. The position calculation is
easier and only consists of the clientWidth/Height to respect scrollbar
widths.
Following the sticky position specification only top, right, bottom and
left values are used to compute the position relative to the scrolling
container.
The container and element positions need to be calculated every time, as
they are likely to be changed by dynamically assigned classes. This can
be the case for different position values based on the scrolling
direction classes set by pat-scroll-box.
@thet thet changed the title Fix pat bumper Fix more pat-bumper regressions Dec 6, 2022
@thet thet merged commit 213822f into master Dec 6, 2022
@thet thet deleted the fix-pat-bumper branch December 6, 2022 17:03
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.

Pat-bumper: intersect with viewport doesn't work after injection

2 participants