mobile: use sticky position for action bars for mobile compatibility (#335)

This commit is contained in:
Huang Xin
2025-02-09 18:35:24 +01:00
committed by GitHub
parent 6b057ebc14
commit effbc08561
5 changed files with 92 additions and 70 deletions
@@ -20,6 +20,8 @@ export const usePullToRefresh = (ref: React.RefObject<HTMLDivElement>, onTrigger
const el = ref.current;
if (!el) return;
if (el.scrollTop > 0) return;
const initialY = startEvent.touches[0]!.clientY;
el.addEventListener('touchmove', handleTouchMove, { passive: false });