Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useLongPress 配置了 moveThreshold:{y: 10}, 在safari里有问题,safari不支持touchEvent #2601

Closed
kongdemin opened this issue Jul 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@kongdemin
Copy link

useLongPress(
() => {
console.log('111');
},
contentRef,
{
delay: 300,
moveThreshold: { y: 10 },
},
);

@kongdemin
Copy link
Author

这里需要判断下TouchEvent是否存在
image

@crazylxr
Copy link
Collaborator

直接来个 pr 呢

@mscststs
Copy link
Contributor

mscststs commented Jul 18, 2024

#2602 Merged

@liuyib liuyib closed this as completed Jul 18, 2024
@liuyib liuyib added bug Something isn't working and removed pr welcomed labels Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants