Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Apr 3, 2024
1 parent 583f906 commit c5798b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface IProps extends React.HTMLAttributes<HTMLDivElement> {
function Image (props: IProps) {
const imgRef = useRef<HTMLImageElement | null>(null)
const observer = useRef<Partial<IntersectionObserver>>({})
const [_, setIsLoaded] = useState(false)
const [, setIsLoaded] = useState(false)
const {
className,
style = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ const useClickable = (props: any) => {
if (!hasMove) {
// @ts-ignore
if (Platform.OS === 'harmony') {
let ms = Math.floor(gapTime / 1000);
if (ms > 0) { // 这种情况是 1000毫秒以上 || 单位小于毫秒的情况
let us = Math.floor(ms / 1000);
if (us > 0 || ms > 10) { // 防止以后系统升级改成毫秒后的容错处理
gapTime = ms;
const ms = Math.floor(gapTime / 1000)
if (ms > 0) { // 这种情况是 1000毫秒以上 || 单位小于毫秒的情况
const us = Math.floor(ms / 1000)
if (us > 0 || ms > 10) { // 防止以后系统升级改成毫秒后的容错处理
gapTime = ms
}
}
}
Expand Down

0 comments on commit c5798b1

Please sign in to comment.