Index: trunk/mockups/glaucus-quick/app.js |
— | — | @@ -53,8 +53,13 @@ |
54 | 54 | } |
55 | 55 | } |
56 | 56 | |
| 57 | + var alreadyClicked = true; |
57 | 58 | $(document).bind('click', function() { |
58 | | - showMenuThingy(); |
| 59 | + if (alreadyClicked) { |
| 60 | + alreadyClicked = false; |
| 61 | + } else { |
| 62 | + showMenuThingy(); |
| 63 | + } |
59 | 64 | }); |
60 | 65 | $(document).bind('scroll', function() { |
61 | 66 | hideMenuBar(); |
— | — | @@ -68,7 +73,7 @@ |
69 | 74 | $(document).unbind('touchmove.menubar'); |
70 | 75 | $(document).unbind('touchend.menubar'); |
71 | 76 | showMenuThingy(); |
72 | | - e.preventDefault(); |
| 77 | + alreadyClicked = true; |
73 | 78 | }); |
74 | 79 | $(document).bind('touchmove.menubar', function() { |
75 | 80 | // moved too much! cancel |
— | — | @@ -78,6 +83,7 @@ |
79 | 84 | } else { |
80 | 85 | // for start of scrolling or touch to clear |
81 | 86 | hideMenuBar(); |
| 87 | + alreadyClicked = true; |
82 | 88 | } |
83 | 89 | }); |
84 | 90 | |