mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing issue around switching feed/text views when scrolling.
This commit is contained in:
parent
9d0aef3d94
commit
76e0b59d89
2 changed files with 6 additions and 4 deletions
|
@ -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]);
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Add table
Reference in a new issue