Fixing switch feed view.

This commit is contained in:
Samuel Clay 2012-05-26 13:16:59 -07:00
parent 15943bb2b9
commit 3c58e5da61
2 changed files with 4 additions and 4 deletions

View file

@ -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({

View file

@ -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,