Skip to content

Commit

Permalink
fix: intersection observer
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBLT committed Mar 17, 2024
1 parent 2153f57 commit 0f53cb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@hec.js/ui/lib/src/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const intersectionObserver = new IntersectionObserver((entries) => {
}
}
}, {
rootMargin: '512px',
root: document,
rootMargin: '256px',
});

new MutationObserver((mutations) => {
Expand Down

0 comments on commit 0f53cb5

Please sign in to comment.