Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Avoid scroll when click on menu, only for small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
eaoui committed Aug 8, 2021
1 parent 624f915 commit dd51f3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function toggleMenuIcon() {
close_graph.style.display = 'none';
}

toggleBodyScrollability();

if (window.screen.width < 720) {
toggleBodyScrollability();
}
}


Expand Down

0 comments on commit dd51f3f

Please sign in to comment.