Skip to content

Commit

Permalink
Fixes Sidr scrolling
Browse files Browse the repository at this point in the history
-Disables 'displace' so menu slides out over content, fixing page scrolling
-Restores iOS elastic scrolling
  • Loading branch information
scj1091 committed Apr 14, 2016
1 parent d4ade84 commit 0e6cef8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion css/sidebar-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
z-index: 999999;
width: 312px;
overflow-x: hidden;
overflow-y: scroll;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
background: #0D6078;
color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion css/sidebar-menu.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ RH.swapSvg = function() {
// initialized on every page
jQuery(document).ready(function() {

jQuery('#simple-menu').sidr({
name: 'campus-menu'
});
jQuery('#simple-menu').sidr({
name: 'campus-menu',
displace: false
});

jQuery('.frontpage-banner').slick({dots: true});
jQuery('.global-maps').slick({dots: true});
Expand Down
6 changes: 3 additions & 3 deletions js/scripts.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0e6cef8

Please sign in to comment.