mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing phantom scroll on feed load.
This commit is contained in:
parent
69d26e467d
commit
4deb9e4901
1 changed files with 9 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
|||
'feed_view_story_positions': {},
|
||||
'iframe_story_positions_keys': [],
|
||||
'feed_view_story_positions_keys': [],
|
||||
'mouse_position_y': 50
|
||||
'mouse_position_y': 0
|
||||
};
|
||||
|
||||
$('body').bind('dblclick.reader', $.rescope(this.handle_dblclicks, this));
|
||||
|
@ -563,7 +563,8 @@
|
|||
'feed_view_story_positions': {},
|
||||
'iframe_story_positions_keys': [],
|
||||
'feed_view_story_positions_keys': [],
|
||||
'previous_stories_stack': []
|
||||
'previous_stories_stack': [],
|
||||
'mouse_position_y': 0
|
||||
};
|
||||
|
||||
this.active_feed = null;
|
||||
|
@ -1085,6 +1086,12 @@
|
|||
this.story_view = view;
|
||||
}
|
||||
|
||||
this.flags.scrolling_by_selecting_story_title = true;
|
||||
clearInterval(this.locks.scrolling);
|
||||
this.locks.scrolling = setTimeout(function() {
|
||||
self.flags.scrolling_by_selecting_story_title = false;
|
||||
}, 1000);
|
||||
|
||||
if (view == 'page') {
|
||||
var $iframe_story = this.find_story_in_story_iframe(this.active_story);
|
||||
this.scroll_to_story_in_iframe(this.active_story, $iframe_story, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue