Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Apr 2, 2024
1 parent 36d76d9 commit b0bedaa
Show file tree
Hide file tree
Showing 2 changed files with 293 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ const useClickable = (props: any) => {
// 1 =>3, 修复部分android机型(三星折叠屏尤为明显),单击时dx,dy为>1,而被误判为move的情况。
const hasMove = Math.abs(gestureState.dx) >= 3 || Math.abs(gestureState.dy) >= 3
if (!hasMove) {
// @ts-ignore
if (Platform.OS === 'harmony') {
let ms = Math.floor(gapTime / 1000);

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

'ms' is never reassigned. Use 'const' instead

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Extra semicolon

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 16.x (ubuntu-latest)

'ms' is never reassigned. Use 'const' instead

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 16.x (ubuntu-latest)

Extra semicolon

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

'ms' is never reassigned. Use 'const' instead

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Extra semicolon

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (windows-latest)

'ms' is never reassigned. Use 'const' instead

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (windows-latest)

Extra semicolon

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (macos-11)

'ms' is never reassigned. Use 'const' instead

Check failure on line 161 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (macos-11)

Extra semicolon
if (ms > 0) { // 这种情况是 1000毫秒以上 || 单位小于毫秒的情况

Check failure on line 162 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Trailing spaces not allowed

Check failure on line 162 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 16.x (ubuntu-latest)

Trailing spaces not allowed

Check failure on line 162 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Trailing spaces not allowed

Check failure on line 162 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (windows-latest)

Trailing spaces not allowed

Check failure on line 162 in packages/taro-components-rn/src/components/hooks/useClickable.tsx

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (macos-11)

Trailing spaces not allowed
Expand Down
Loading

0 comments on commit b0bedaa

Please sign in to comment.