Allow touching in the offcanvas area

This commit is contained in:
Samuel Georges
2014-08-07 20:37:43 +10:00
committed by Arnold Daniels
parent 0600b476ba
commit 58565ab2b1

View File

@@ -156,7 +156,8 @@
}
//disable scrolling on mobiles (they ignore overflow:hidden)
$('body').on('touchmove.bs', function(e) {
e.preventDefault();
if (!$(event.target).closest('.offcanvas').length)
e.preventDefault();
});
}