From f4dcaeccb4f8d8ca18bcfa2d18cda810c5905452 Mon Sep 17 00:00:00 2001 From: GSMT Date: Tue, 7 May 2024 12:15:32 +0000 Subject: [PATCH] update --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index bf6d8ba..8c543d3 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1030,9 +1030,9 @@ const Content = React.forwardRef(function ( } }} onPointerMove={(event) => { + lastKnownPointerEventRef.current = event; if (handleOnly) return; rest.onPointerMove?.(event); - lastKnownPointerEventRef.current = event; if (!pointerStartRef.current) return; const yPosition = event.clientY - pointerStartRef.current.y;