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

是否需要增加useLongHover 的hook? #2666

Open
hcfq1999 opened this issue Nov 6, 2024 · 4 comments
Open

是否需要增加useLongHover 的hook? #2666

hcfq1999 opened this issue Nov 6, 2024 · 4 comments

Comments

@hcfq1999
Copy link

hcfq1999 commented Nov 6, 2024

No description provided.

@hcfq1999
Copy link
Author

hcfq1999 commented Nov 6, 2024

是否需要增加useLongHover 的hook,用来监听目标元素的长时间悬停事件。如果需要的话我可以提pr。

@crazylxr
Copy link
Collaborator

欢迎 pr

@aojunhao123
Copy link

个人认为这个场景其实不用单独开个新的hooks,hover也不像press那样分为long press和press。我理解在useHover中新增一个delay配置项即可

@aojunhao123
Copy link

@crazylxr 大佬怎么看,我打算提个pr来做一下(因为看到这个issue一个多月了还没进展

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants