Skip to content

Commit

Permalink
fix(sideMenu): Disable content interaction when menu open
Browse files Browse the repository at this point in the history
Closes #1339
  • Loading branch information
adamdbradley committed May 14, 2014
1 parent cb597d7 commit 76d4c08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/controllers/sideMenuController.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@
var maxRight = this.right.width;
this.openAmount(this.right.width * p);
}

if(percentage !== 0) {
document.body.classList.add('menu-open');
} else {
document.body.classList.remove('menu-open');
}
},

/**
Expand Down
4 changes: 4 additions & 0 deletions scss/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
box-shadow: $menu-side-shadow;
}

.menu-open .scroll-content {
pointer-events: none;
}

.grade-b .menu-content,
.grade-c .menu-content {
@include box-sizing(content-box);
Expand Down

0 comments on commit 76d4c08

Please sign in to comment.