Skip to content

Commit

Permalink
Merge pull request mozilla-b2g#21757 from KevinGrandon/bug_1038576_ro…
Browse files Browse the repository at this point in the history
…cketbar_focus

Bug 1038576 - [Rocketbar] Swiping starting from Rocketbar should not invoke Rocketbar
  • Loading branch information
KevinGrandon committed Jul 15, 2014
2 parents ed3e772 + eaa6d80 commit b551b68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/verticalhome/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
}

var input = document.getElementById('search');
input.addEventListener('touchstart', this.open.bind(this));
input.addEventListener('click', this.open.bind(this));
// Prevent the context menu from appearing as we will not allow
// long-tapping on the search bar later in 2.1.
input.addEventListener('contextmenu', (e) => {
e.stopPropagation();
});
}

Search.prototype = {
Expand Down

0 comments on commit b551b68

Please sign in to comment.