1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 11:21:29 +00:00

improve hotkey buffer scrolling speed; bind viewport scrolling to shift-arrows

This commit is contained in:
Andrew Dolgov
2013-03-19 19:13:56 +04:00
parent d5b82f3ebb
commit d2db81a5f6
3 changed files with 10 additions and 4 deletions

View File

@@ -560,11 +560,11 @@ function moveToPost(mode, noscroll) {
var ctr = $("headlines-frame");
if (!noscroll && article && article.offsetTop < ctr.scrollTop) {
scrollArticle(-ctr.offsetHeight/2);
scrollArticle(-ctr.offsetHeight/3);
} else if (!noscroll && prev_article &&
prev_article.offsetTop < ctr.scrollTop) {
cdmExpandArticle(prev_id);
scrollArticle(-ctr.offsetHeight/2);
scrollArticle(-ctr.offsetHeight/3);
} else if (prev_id) {
cdmExpandArticle(prev_id);
cdmScrollToArticleId(prev_id, noscroll);