Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Reset <body> scrolling when leaving mobile view
Browse files Browse the repository at this point in the history
The “noscroll” class is added when the drawer is opened, and so when the
view changes from mobile when the drawer is open the “noscroll" needs to
be removed to re-enable scrolling on the document.

Fixes Polymer/polymer#1089
  • Loading branch information
Ross Allen committed Jan 13, 2015
1 parent 743e2f4 commit c0c7747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elements/app-drawer.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
this.controller.left = 0;
this.controller.right = 315;
this.active = false;
document.body.classList.remove('noscroll');
}
}
});
Expand Down

0 comments on commit c0c7747

Please sign in to comment.