updated threshold and rootMargin for IntersectionObserver

added updated threshold and rootMargin for IntersectionObserver to avoid the flickering issue in mobile devices
This commit is contained in:
Edison Augusthy
2019-10-04 10:12:21 +05:30
committed by GitHub
parent 3ad814ebb7
commit 12317d9649

View File

@@ -990,9 +990,9 @@
sendButtonElement.classList.toggle('show'); sendButtonElement.classList.toggle('show');
}); });
}, { }, {
threshold: 1 rootMargin: '0px',
threshold: [0],
}); });
observer.observe(requestElement); observer.observe(requestElement);
}, },
handleImport() { handleImport() {