mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing switch feed view.
This commit is contained in:
parent
15943bb2b9
commit
3c58e5da61
2 changed files with 4 additions and 4 deletions
|
@ -3602,8 +3602,7 @@
|
|||
});
|
||||
} else if (view == 'feed') {
|
||||
if (this.active_story) {
|
||||
var $feed_story = this.find_story_in_feed_view(this.active_story.id);
|
||||
this.scroll_to_story_in_story_feed(this.active_story, $feed_story, {skip_scroll: true});
|
||||
NEWSBLUR.app.story_list.scroll_to_selected_story(this.active_story.story_view, {immediate: true});
|
||||
}
|
||||
|
||||
$story_pane.animate({
|
||||
|
|
|
@ -41,11 +41,12 @@ NEWSBLUR.Views.StoryListView = Backbone.View.extend({
|
|||
// = Actions =
|
||||
// ===========
|
||||
|
||||
scroll_to_selected_story: function(story_view) {
|
||||
scroll_to_selected_story: function(story_view, options) {
|
||||
options = options || {};
|
||||
NEWSBLUR.reader.flags.scrolling_by_selecting_story_title = true;
|
||||
this.$el.scrollable().stop();
|
||||
this.$el.scrollTo(story_view.$el, {
|
||||
duration: 340,
|
||||
duration: options.immediate ? 0 : 340,
|
||||
axis: 'y',
|
||||
easing: 'easeInOutQuint',
|
||||
offset: 0, // scroll_offset,
|
||||
|
|
Loading…
Add table
Reference in a new issue