r111077 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111076‎ | r111077 | r111078 >
Date:19:50, 9 February 2012
Author:brion
Status:deferred
Tags:
Comment:
tweak
Modified paths:
  • /trunk/mockups/glaucus-quick/app.js (modified) (history)

Diff [purge]

Index: trunk/mockups/glaucus-quick/app.js
@@ -64,10 +64,11 @@
6565 var current = $('header').css('top');
6666 if (current == '0px') {
6767 // simulate click handling for some reason it doesn't work
68 - $(document).bind('touchend.menubar', function() {
 68+ $(document).bind('touchend.menubar', function(e) {
6969 $(document).unbind('touchmove.menubar');
7070 $(document).unbind('touchend.menubar');
7171 showMenuThingy();
 72+ e.preventDefault();
7273 });
7374 $(document).bind('touchmove.menubar', function() {
7475 // moved too much! cancel
@@ -75,7 +76,7 @@
7677 $(document).unbind('touchend.menubar');
7778 });
7879 } else {
79 - // for start of scrolling or touch
 80+ // for start of scrolling or touch to clear
8081 hideMenuBar();
8182 }
8283 });