From 12317d9649ab95ed21b3a1b5f7353328cbf73479 Mon Sep 17 00:00:00 2001 From: Edison Augusthy Date: Fri, 4 Oct 2019 10:12:21 +0530 Subject: [PATCH] updated threshold and rootMargin for IntersectionObserver added updated threshold and rootMargin for IntersectionObserver to avoid the flickering issue in mobile devices --- pages/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 60f7df3c6..508519e4f 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -990,9 +990,9 @@ sendButtonElement.classList.toggle('show'); }); }, { - threshold: 1 + rootMargin: '0px', + threshold: [0], }); - observer.observe(requestElement); }, handleImport() {