From 270e9a06ff6542a193061f29649800ce609934e9 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Mon, 4 Dec 2023 00:14:35 -0300 Subject: [PATCH] Add "OFFSET" to Stream.tsx --- src/js/components/Stream.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/js/components/Stream.tsx b/src/js/components/Stream.tsx index 4fef28c..4b5a31a 100644 --- a/src/js/components/Stream.tsx +++ b/src/js/components/Stream.tsx @@ -14,6 +14,14 @@ interface Props { t: TFunction; } +/* + Provides a number that increments the value of the 'top' + parameter given to scrollBy() during auto-scroll. This + variable came from the scroll height provided by iOS being + less than expected. +*/ +const OFFSET = 100; + export function Stream({ recitation, surah,