blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

Implementing "safe polygon" for nested menu items

Open braeden opened this issue 8 months ago • 0 comments

Environment

  • Package version(s): N/A
  • Browser and OS versions: N/A

Feature request

The supersceding library to popper.js (floating-ui) has this feature built in, but the idea is to make better guarantees about where a user can safely move their mouse without dismissing the popover accidentally & expose this on the public API. See:

  • https://floating-ui.com/docs/usehover#safepolygon
  • https://www.smashingmagazine.com/2023/08/better-context-menus-safe-triangles/

Examples

image

braeden avatar Dec 04 '23 17:12 braeden