From e1ef122355228cbab272b2e386a6370084e66b10 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 5 Dec 2019 21:48:16 +0300 Subject: force-disable headlines smooth scrolling when switching feeds enable smooth scrolling for article frame --- js/Headlines.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js') 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); -- cgit v1.2.3