Cancel when mouse pointer is outside menu
See original GitHub issueIt happens repeatedly that users of my application choose a command from the menu when they actually want cancel the menu. From using other menus they expect releasing the mouse button outside the menu would cancel it. In contrast the Cytoscape menu still selects a command even if the mouse pointer is outside the menu.
Current behavior:
- The blue highlight remains even if the mouse pointer is outside the menu (see screenshot)
Expected behavior:
- The blue highlight disappears as soon as the mouse pointer is outside the menu (that is the mouse distance is
> menuRadius + activePadding
). Releasing the mouse button does not select any command and closes the menu.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:14 (11 by maintainers)
Top Results From Across the Web
Hide/close menu when mouse is clicked outside its focus
Otherwise, the menu will not disappear when the user clicks outside of the menu or the window that created the menu (if it...
Read more >Moving the mouse: mouseover/out, mouseenter/leave
The mouseover event occurs when a mouse pointer comes over an element, and mouseout – when it leaves. These events are special, because...
Read more >Should a dropdown list be closed when mouse leaves?
If the user opens the dropdown and makes a more generous mouse move (move away the cursor to read all the options) -...
Read more >Element: mouseleave event - Web APIs | MDN
The mouseleave event is fired at an Element when the cursor of a pointing device (usually a mouse) is moved out of it....
Read more >pointer-events | CSS-Tricks
The pointer-events property allows for control over how HTML elements respond to mouse/touch events – including CSS hover/active states, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@HEmile Canceling works perfect! 3.4.0 is great! 😄
I still have high demand for this improvement, but can’t implement it at the moment.