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 5f697f3 commit a794b59Copy full SHA for a794b59
components/use-comments-navigator.js
@@ -62,10 +62,6 @@ export function useCommentsNavigator () {
62
window.requestAnimationFrame(() => {
63
if (!commentRef?.current || !commentRef.current.isConnected) return
64
65
- // don't track this new comment if it's visible in the viewport
66
- const rect = commentRef.current.getBoundingClientRect()
67
- if (rect.top >= 0 && rect.bottom <= window.innerHeight) return
68
-
69
// dedupe
70
const existing = commentRefs.current.some(item => item.ref.current === commentRef.current)
71
if (existing) return
0 commit comments