diff options
author | Andrew Dolgov <[email protected]> | 2019-12-05 21:48:16 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-12-05 21:48:16 +0300 |
commit | e1ef122355228cbab272b2e386a6370084e66b10 (patch) | |
tree | 87d1a546de5f7cc1fc237366a84c2ff2234e9293 /js/Headlines.js | |
parent | e40c24f8293ceaefc0eab644bc9b060fa92e549a (diff) |
force-disable headlines smooth scrolling when switching feeds
enable smooth scrolling for article frame
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-x | js/Headlines.js | 2 |
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); |