Index: trunk/mockups/glaucus-quick/app.js |
— | — | @@ -64,10 +64,11 @@ |
65 | 65 | var current = $('header').css('top'); |
66 | 66 | if (current == '0px') { |
67 | 67 | // simulate click handling for some reason it doesn't work |
68 | | - $(document).bind('touchend.menubar', function() { |
| 68 | + $(document).bind('touchend.menubar', function(e) { |
69 | 69 | $(document).unbind('touchmove.menubar'); |
70 | 70 | $(document).unbind('touchend.menubar'); |
71 | 71 | showMenuThingy(); |
| 72 | + e.preventDefault(); |
72 | 73 | }); |
73 | 74 | $(document).bind('touchmove.menubar', function() { |
74 | 75 | // moved too much! cancel |
— | — | @@ -75,7 +76,7 @@ |
76 | 77 | $(document).unbind('touchend.menubar'); |
77 | 78 | }); |
78 | 79 | } else { |
79 | | - // for start of scrolling or touch |
| 80 | + // for start of scrolling or touch to clear |
80 | 81 | hideMenuBar(); |
81 | 82 | } |
82 | 83 | }); |