3 ms·
Yes. Not only that, it should keep the submenu open when traveling inside this triangle (but close on timeout if mouse stays still inside it): +--------+
by dchest 14y ago
Yes. Not only that, it should keep the submenu open when traveling inside this triangle (but close on timeout if mouse stays still inside it):
+--------+
| parent |
| +--------+
| /|submenu |
| / | |
|=====/==| |
|=====\==| |
| \ | |
+------ \| |
+--------+
and close immediately when not inside the triangle.
Also, if in the parent there's another menu item with submenu somewhere on the path of mouse inside this triangle, ignore this item.
For best results, if mouse was inside the submenu for a moment, keep the submenu open until clicking away from it or moving over a different item in the parent menu. So many details!
- spitfire 14y agoUpvoted for the ASCII art alone. That seems to be a lost art, particularly here on HN. Long live the ASCII art diagram!
- reedlaw 14y agoYeah! Was it done in Emacs artist-mode by any chance?
- dchest 14y agoHaha, no, Vim in replace mode. But yeah, artist-mode is awesome.
- nathan_long 14y agoI'm also a big fan of ASCII diagrams. The ones I use to explain my Rails authorization gem, Authority (https://github.com/nathanl/authority#the-flow-of-authority https://github.com/nathanl/authority#the-flow-of-authority), were made using a great tool called Asciiflow: http://www.asciiflow.com/ http://www.asciiflow.com/
- markdotto 14y agoYes! Absolutely. We wanted to add some javascript love to the dropdowns, but ultimately didn't have the time to get it in there for launch. The beautiful part of it is we can always improve :). Much love for the diagram as well—I'll see if I can get Jacob to cook this up.
- dchest 14y agoThank you!