Skip to content

Commit

Permalink
disable scrolling to false
Browse files Browse the repository at this point in the history
  • Loading branch information
grvsooryen committed Mar 6, 2017
1 parent f40a8dc commit ef4b676
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions dist/js/bootstrap-essentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
placement: 'auto',
autohide: true,
recalc: true,
disableScrolling: true,
disableScrolling: false,
modal: true
}

Expand Down Expand Up @@ -254,10 +254,10 @@
}, 1)
}
//disable scrolling on mobiles (they ignore overflow:hidden)
$('body').on('touchmove.bs', function(e) {
if (!$(event.target).closest('[class^="offcanvas"').length)
e.preventDefault();
});
// $('body').on('touchmove.bs', function(e) {
// if (!$(event.target).closest('.offcanvas').length)
// e.preventDefault();
// });
}

OffCanvas.prototype.enableScrolling = function() {
Expand Down
Loading

0 comments on commit ef4b676

Please sign in to comment.