We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 810ae06 commit 3028931Copy full SHA for 3028931
src/observers.ts
@@ -57,7 +57,7 @@ function createObserver(options: IntersectionObserverInit) {
57
const inView =
58
entry.isIntersecting &&
59
observer.thresholds.some(
60
- (threshold) => entry.intersectionRatio > threshold,
+ (threshold) => entry.intersectionRatio >= threshold,
61
);
62
63
// @ts-ignore support IntersectionObserver v2
src/stories/Status/index.tsx
@@ -14,6 +14,7 @@ function Status({ inView }: Props) {
14
<div
15
css={{
16
position: 'fixed',
17
+ zIndex: 1,
18
top: 0,
19
right: 0,
20
width: 32,
0 commit comments