提交 e778bec9 编写于 作者: K Kohsuke Kawaguchi

hide/show time lag seems to create a frustrating situation where:

1. you hover over the <a> tag
2. context menu displays
3. you try to move the mouse over to the menu
4. menu disappears
5. you can't click the menu *frustration*
上级 a824d8a6
......@@ -62,12 +62,11 @@ var breadcrumbs = (function() {
*/
function handleHover(e,delay) {
function showMenu(items) {
menu.hide();
cancelMenu();
hitTest = Dom.getRegion(e);
menuDelay = window.setTimeout(function() {
if (hitTest.contains(mouse)) {
menu.hide();
menu.cfg.setProperty("context", [e, "tl", "bl"]);
menu.clearContent();
menu.addItems(items);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册