We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c814b2 commit 244b4d9Copy full SHA for 244b4d9
src/hooks/useMobileTouchMove.ts
@@ -74,9 +74,7 @@ export default function useMobileTouchMove(
74
}
75
76
return () => {
77
- if(listRef.current) {
78
- listRef.current.removeEventListener('touchstart', onTouchStart);
79
- }
+ listRef.current?.removeEventListener('touchstart', onTouchStart);
80
cleanUpEvents();
81
clearInterval(intervalRef.current);
82
};
0 commit comments