mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Don't scroll to story if it isn't visible.
This commit is contained in:
parent
bc7d7567a6
commit
b576e274a2
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ NEWSBLUR.Views.StoryListView = Backbone.View.extend({
|
|||
scroll_to_selected_story: function(story, options) {
|
||||
options = options || {};
|
||||
if (!story) story = NEWSBLUR.reader.active_story;
|
||||
if (!story || !story.story_view) return;
|
||||
if (!story || !story.story_view || !story.story_view.$el.length) return;
|
||||
var $story = story.story_view.$el;
|
||||
|
||||
if (NEWSBLUR.assets.preference('feed_view_single_story')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue