From 63704a5f0ffca53f1a24aa80d2bc70ccb652fa30 Mon Sep 17 00:00:00 2001 From: soxa <6390896+Soxasora@users.noreply.github.com> Date: Wed, 19 Mar 2025 00:16:36 +0100 Subject: [PATCH] Hide pull-to-refresh when not pulling (#1986) --- components/pull-to-refresh.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/pull-to-refresh.js b/components/pull-to-refresh.js index 034b6205..2b96ef1d 100644 --- a/components/pull-to-refresh.js +++ b/components/pull-to-refresh.js @@ -72,7 +72,10 @@ export default function PullToRefresh ({ children, className }) { onTouchMove={handleTouchMove} onTouchEnd={handleTouchEnd} > -

+

0 ? 1 : 0, top: `${Math.max(-20, Math.min(-20 + pullDistance / 2, 5))}px` }} + > {pullMessage}

{children}