Fixing issue around switching feed/text views when scrolling.

This commit is contained in:
Samuel Clay 2016-12-14 13:34:56 -08:00
parent 9d0aef3d94
commit 76e0b59d89
2 changed files with 6 additions and 4 deletions

View file

@ -641,8 +641,9 @@ NEWSBLUR.Views.StoryListView = Backbone.View.extend({
this.prefetch_story_locations_in_feed_view();
},
switch_story_view: function(story, selected) {
if (selected) {
switch_story_view: function(story, selected, options) {
// console.log(['switch_story_view list', story, selected, options]);
if (selected && !options.selected_by_scrolling) {
var story_view = NEWSBLUR.assets.view_setting(story.get('story_feed_id'), 'view');
if (story_view != NEWSBLUR.reader.story_view) {
console.log(['story list, switch story view', NEWSBLUR.reader.story_view]);

View file

@ -548,8 +548,9 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
return false;
},
switch_story_view: function(story, selected) {
if (selected) {
switch_story_view: function(story, selected, options) {
// console.log(['switch_story_view title', story, selected, options]);
if (selected && !options.selected_by_scrolling) {
var story_view = NEWSBLUR.assets.view_setting(story.get('story_feed_id'), 'view');
if (story_view != NEWSBLUR.reader.story_view) {
console.log(['story title, switch story view', NEWSBLUR.reader.story_view]);