Skip to content

Commit

Permalink
body swipe
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Feb 28, 2014
1 parent f9b927c commit 9ff39db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hearth/media/js/navbar.js
Expand Up @@ -57,11 +57,11 @@ define('navbar', ['jquery', 'jquery.hammer', 'log', 'navigation', 'nunjucks', 's
z.body.on('reloaded_chrome', initNavbarButtons);

// Swipe handler.
$('#site-nav').hammer({'swipe_velocity': 0.3}).on('swipe', function(e) {
z.body.hammer({'swipe_velocity': 0.3}).on('swipe', function(e) {
if (['left', 'right'].indexOf(e.gesture.direction) === -1) {
return;
}
var $navbar = $(this).find('.navbar.active');
var $navbar = $('.navbar.active');
var tabs = tabsMkt;
if ($navbar.hasClass('nav-settings')) {
tabs = tabsSettings;
Expand Down

0 comments on commit 9ff39db

Please sign in to comment.