mirror of
https://github.com/jasny/bootstrap.git
synced 2026-04-24 03:00:49 -04:00
Allow touching in the offcanvas area
This commit is contained in:
committed by
Arnold Daniels
parent
0600b476ba
commit
58565ab2b1
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user