Merge pull request #2729 from cpradio/firefox-kbd-post-navigation

FIX: j/k navigation for posts using Firefox
This commit is contained in:
Jeff Atwood 2014-08-30 13:32:15 -07:00
commit 6d1be665a1
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
// if nothing is selected go to the first post on screen
if ($selected.length === 0) {
var scrollTop = $('body').scrollTop();
var scrollTop = $(document).scrollTop();
index = 0;
$articles.each(function(){