We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4979391 commit 6f82852Copy full SHA for 6f82852
1 file changed
src/App.js
@@ -15,10 +15,6 @@ const OnboardingModal = React.lazy(() =>
15
import('src/features/onboarding').then((module) => ({ default: module.OnboardingModal }))
16
)
17
18
-const intersectionOptions = {
19
- threshold: 0.5,
20
-}
21
-
22
function App() {
23
const [showSideBar, setShowSideBar] = useState(false)
24
const [showSettings, setShowSettings] = useState(false)
@@ -64,7 +60,9 @@ function App() {
64
60
65
61
useLayoutEffect(() => {
66
62
let dndLayoutDiv = document.getElementsByClassName('DNDContent')[0]
67
- let observer = new IntersectionObserver(callback, intersectionOptions)
63
+ let observer = new IntersectionObserver(callback, {
+ threshold: 0.1,
+ })
68
69
if (dndLayoutDiv) {
70
observer.observe(dndLayoutDiv)
0 commit comments