Skip to content

Commit

Permalink
fix(styles): Fix iOS Safari choopy scroll #6
Browse files Browse the repository at this point in the history
  • Loading branch information
oswaldoacauan committed Nov 18, 2013
1 parent 20ff6eb commit 6366b9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/assets/_scss/partials/_main.scss
Expand Up @@ -34,7 +34,12 @@ body,
position: relative;
height: 100%;
overflow: auto;
overflow-scrolling: touch;
-webkit-overflow-scrolling: touch;
}

.content {
position: relative;
min-height: 100%;
}

.wrapper {
Expand All @@ -46,7 +51,7 @@ body,
outline: 0;
background-color: $background-color;
overflow: auto;
overflow-scrolling: touch;
-webkit-overflow-scrolling: touch;

@include breakpoint(medium) {
position: relative;
Expand Down
5 changes: 5 additions & 0 deletions src/assets/js/scripts.js
Expand Up @@ -37,6 +37,11 @@
if ($.support.pjax) {
$document.on('pjax:start', function() {
NProgress.start();

$surface.animate({
scrollTop: 0
}, 500);

if(Drawer.isOpen())
Drawer.close();
});
Expand Down

0 comments on commit 6366b9b

Please sign in to comment.