summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-05 21:48:16 +0300
committerAndrew Dolgov <[email protected]>2019-12-05 21:48:16 +0300
commite1ef122355228cbab272b2e386a6370084e66b10 (patch)
tree87d1a546de5f7cc1fc237366a84c2ff2234e9293 /js/Headlines.js
parente40c24f8293ceaefc0eab644bc9b060fa92e549a (diff)
force-disable headlines smooth scrolling when switching feeds
enable smooth scrolling for article frame
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 4382e04f7..07bebe1f9 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -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);