mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Speeding up story transitions on both page and feed.
This commit is contained in:
parent
ec6cbefdc8
commit
5d80e2d5a8
1 changed files with 2 additions and 2 deletions
|
@ -1486,7 +1486,7 @@
|
|||
|
||||
} else if (this.story_view == 'feed' || this.flags['page_view_showing_feed_view']) {
|
||||
$feed_view.scrollable().stop();
|
||||
$feed_view.scrollTo($story, 600, { axis: 'y', easing: 'easeInOutQuint', offset: 0, queue: false });
|
||||
$feed_view.scrollTo($story, 420, { axis: 'y', easing: 'easeInOutQuint', offset: 0, queue: false });
|
||||
}
|
||||
}
|
||||
clearInterval(this.locks.scrolling);
|
||||
|
@ -1510,7 +1510,7 @@
|
|||
$iframe.scrollTo($story, 0, { axis: 'y', offset: -24 }); // Do this at story_view switch
|
||||
} else if (this.story_view == 'page') {
|
||||
$iframe.scrollable().stop();
|
||||
$iframe.scrollTo($story, 800, { axis: 'y', easing: 'easeInOutQuint', offset: -24, queue: false });
|
||||
$iframe.scrollTo($story, 580, { axis: 'y', easing: 'easeInOutQuint', offset: -24, queue: false });
|
||||
}
|
||||
var parent_scroll = $story.parents('.NB-feed-story-view').scrollTop();
|
||||
var story_offset = $story.offset().top;
|
||||
|
|
Loading…
Add table
Reference in a new issue