Skip to content

Commit

Permalink
fix(scripts): Add correct focus on page load. Close #58
Browse files Browse the repository at this point in the history
  • Loading branch information
oswaldoacauan committed Feb 3, 2014
1 parent ec9becd commit 58ae72b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/assets/js/scripts.js
Expand Up @@ -178,6 +178,12 @@
// =================
$surface.on('touchstart', function(e) {});

// Fix keyboard scrolling not working when page load
// =================
if($body.hasClass('home-template')) {
$('.wrapper').eq(0).focus();
}

});

})(jQuery, window, document);
2 changes: 1 addition & 1 deletion src/index.hbs
Expand Up @@ -13,7 +13,7 @@
</div>
</aside>

<section class="wrapper">
<section class="wrapper" tabindex="0">
<div class="wrapper-container">
{{> custom/featured this}}

Expand Down

0 comments on commit 58ae72b

Please sign in to comment.