forked from dollarshaveclub/stickybits
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Describe the bug
The 'is-sticky' class is not being added, despite the "position:sticky" is being added by stickybits. I can trigger the error if I scroll down a page very fast - it some times takes a few tries before it happens though).
See this video.
To Reproduce
Steps to reproduce the behavior:
- Go to https://thejewelleryroom.com/jewellery
- Scroll down very fast (try CMD+ARROW DOWN on mac, or perhaps CTRL+ARROW DOWN on windows, to go to bottom of page)
- The stuck bar will be stuck, but is missing "is-sticky" class.
Expected behavior
Should receive "is-sticky" whenever position:sticky
is set on the object.
Screenshots
See video:
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Config
stickybits(this.$refs.productListHeader, {
useStickyClasses: true,
stickyClass: 'is-sticky',
stuckClass: 'is-sticky',
stickyBitStickyOffset: (this.$isMobile()) ? 61 : 144
});
yowainwright and Tomas2D
Metadata
Metadata
Assignees
Labels
No labels