Oops
This commit is contained in:
@@ -107,7 +107,7 @@ function ListImpl<ItemT>(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function handleScroll() {
|
function handleScroll() {
|
||||||
// console.log(window.scrollY)
|
console.log(window.scrollY)
|
||||||
}
|
}
|
||||||
window.addEventListener('scroll', handleScroll)
|
window.addEventListener('scroll', handleScroll)
|
||||||
return () => window.removeEventListener('scroll', handleScroll)
|
return () => window.removeEventListener('scroll', handleScroll)
|
||||||
@@ -135,10 +135,7 @@ function ListImpl<ItemT>(
|
|||||||
pal.border,
|
pal.border,
|
||||||
]}>
|
]}>
|
||||||
<View style={styles.visibilityDetector}>
|
<View style={styles.visibilityDetector}>
|
||||||
<Visibility
|
<Visibility onVisibleChange={setIsVisible} />
|
||||||
topMargin={(headerOffset ?? 0) + 'px'}
|
|
||||||
onVisibleChange={setIsVisible}
|
|
||||||
/>
|
|
||||||
</View>
|
</View>
|
||||||
<View style={[styles.scrolledDownDetector, {height: headerOffset}]}>
|
<View style={[styles.scrolledDownDetector, {height: headerOffset}]}>
|
||||||
<Visibility
|
<Visibility
|
||||||
|
|||||||
Reference in New Issue
Block a user