Add hover intent option to useHover
hook
#4438
Replies: 2 comments 2 replies
-
We don't really have anything that uses hover as the primary interaction, as that has a lot of accessibility pitfalls and problems, especially for touch users. I don't think we'd want to do anything to encourage hover as a primary interaction. Can you expand more on your use case? |
Beta Was this translation helpful? Give feedback.
-
Using within a navbar. When the user is moving into the document with their mouse, i'd like to make sure they are intending to interact with the menu vs their mouse unintentionally triggering the isHovered boolean. https://codesandbox.io/s/relaxed-tereshkova-l55dbi?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
-
It would be nice to pass an optional argument to
useHover
for hover intent.Using
useHover
within a navigation menu, and want to make sure folks are intending to interact with the element before triggering the hover immediately.Reference: https://briancherne.github.io/jquery-hoverIntent/
Beta Was this translation helpful? Give feedback.
All reactions