Skip to content

Commit

Permalink
Changing the element firing the swipe event
Browse files Browse the repository at this point in the history
  • Loading branch information
cone committed Jun 23, 2015
1 parent 5e670e2 commit f151634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/mobile-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pages.menu.toggleMobileMenu = function() {
};

pages.menu.swipeHideMenu = function() {
$('body').swipe({
$('#mobile-menu').swipe({
swipeRight: function(event, direction, distance, duration, fingerCount){
if ($('body').hasClass('is-menu-visible')) {
$('#header, #container, #footer').addClass('is-moved-to-right');
Expand Down

0 comments on commit f151634

Please sign in to comment.