Skip to content

Commit 76d4c08

Browse files
committed
fix(sideMenu): Disable content interaction when menu open
Closes #1339
1 parent cb597d7 commit 76d4c08

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

js/controllers/sideMenuController.js

+6
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@
142142
var maxRight = this.right.width;
143143
this.openAmount(this.right.width * p);
144144
}
145+
146+
if(percentage !== 0) {
147+
document.body.classList.add('menu-open');
148+
} else {
149+
document.body.classList.remove('menu-open');
150+
}
145151
},
146152

147153
/**

scss/_menu.scss

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
box-shadow: $menu-side-shadow;
2525
}
2626

27+
.menu-open .scroll-content {
28+
pointer-events: none;
29+
}
30+
2731
.grade-b .menu-content,
2832
.grade-c .menu-content {
2933
@include box-sizing(content-box);

0 commit comments

Comments
 (0)