1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:05:55 +00:00

force-disable headlines smooth scrolling when switching feeds

enable smooth scrolling for article frame
This commit is contained in:
Andrew Dolgov
2019-12-05 21:48:16 +03:00
parent e40c24f829
commit e1ef122355
8 changed files with 22 additions and 7 deletions

View File

@@ -592,7 +592,9 @@ define(["dojo/_base/declare"], function (declare) {
Article.setActive(0);
try {
$("headlines-frame").removeClassName("smooth-scroll");
$("headlines-frame").scrollTop = 0;
$("headlines-frame").addClassName("smooth-scroll");
Element.hide("floatingTitle");
$("floatingTitle").setAttribute("data-article-id", 0);