Merge pull request #2729 from cpradio/firefox-kbd-post-navigation
FIX: j/k navigation for posts using Firefox
This commit is contained in:
commit
6d1be665a1
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue