Skip to content

Commit 00b043f

Browse files
author
FrDH
committed
improved off canvas css
Prevents dragging the page back in view on a touch device
1 parent ceb518d commit 00b043f

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

src/css/addons/jquery.mmenu.offcanvas.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ html.mm-opening .mm-page {
3939
bottom: 0; }
4040

4141
html.mm-opened {
42-
overflow-x: hidden;
42+
overflow: hidden;
4343
position: relative; }
44+
html.mm-opened body {
45+
overflow: hidden; }
4446

4547
html.mm-opened .mm-page {
4648
-webkit-box-sizing: border-box;

src/css/jquery.mmenu.all.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,10 @@ html.mm-opening .mm-page {
260260
bottom: 0; }
261261

262262
html.mm-opened {
263-
overflow-x: hidden;
263+
overflow: hidden;
264264
position: relative; }
265+
html.mm-opened body {
266+
overflow: hidden; }
265267

266268
html.mm-opened .mm-page {
267269
-webkit-box-sizing: border-box;

src/css/jquery.mmenu.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,10 @@ html.mm-opening .mm-page {
260260
bottom: 0; }
261261

262262
html.mm-opened {
263-
overflow-x: hidden;
263+
overflow: hidden;
264264
position: relative; }
265+
html.mm-opened body {
266+
overflow: hidden; }
265267

266268
html.mm-opened .mm-page {
267269
-webkit-box-sizing: border-box;

src/scss/addons/jquery.mmenu.offcanvas.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@ html.mm-opening
5555
// Container
5656
html.mm-opened
5757
{
58-
overflow-x: hidden;
58+
overflow: hidden;
5959
position: relative;
60+
61+
body
62+
{
63+
overflow: hidden;
64+
}
6065
}
6166

6267
// Page + blocker

0 commit comments

Comments
 (0)