Skip to content

Commit cc1569a

Browse files
committed
fix: type
1 parent edf1a7b commit cc1569a

File tree

2 files changed

+289
-1
lines changed

2 files changed

+289
-1
lines changed

packages/taro-components-rn/src/components/hooks/useClickable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ const useClickable = (props: any) => {
156156
// 1 =>3, 修复部分android机型(三星折叠屏尤为明显),单击时dx,dy为>1,而被误判为move的情况。
157157
const hasMove = Math.abs(gestureState.dx) >= 3 || Math.abs(gestureState.dy) >= 3
158158
if (!hasMove) {
159+
// @ts-ignore
159160
if (Platform.OS === 'harmony') {
160161
let ms = Math.floor(gapTime / 1000);
161162
if (ms > 0) { // 这种情况是 1000毫秒以上 || 单位小于毫秒的情况

0 commit comments

Comments
 (0)