Skip to content

Commit 6998654

Browse files
author
hazhihui
committed
fix: touchend event not fired when long press selection
Change-Id: Icaad4860dd895b6107cb4c6010b3e72b2b012399
1 parent 63b3b39 commit 6998654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useMobileTouchMove.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function useMobileTouchMove(
4949
const onTouchStart = (e: TouchEvent) => {
5050
cleanUpEvents();
5151

52-
if (e.touches.length === 1 && !touchedRef.current) {
52+
if (e.touches.length === 1) {
5353
touchedRef.current = true;
5454
touchYRef.current = Math.ceil(e.touches[0].pageY);
5555

0 commit comments

Comments
 (0)