Skip to content

Commit

Permalink
disable scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
thabti committed Jan 15, 2017
1 parent 8fbe513 commit f64f73f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Audioplayer/MobilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ class MobilePlayer extends Component {
if (!surah) return false;
const openPlayer = () => {
if (open) {
document.querySelector('html').style.overflow = 'hidden';
enableScroll();
} else {
document.querySelector('html').style.overflow = 'initial';
disableScroll();
}
this.setState({ open: !open });
Expand Down

0 comments on commit f64f73f

Please sign in to comment.