From: Andrew Dolgov Date: Thu, 21 Mar 2013 05:32:04 +0000 (+0400) Subject: tweak cdmExpandArticle behavior with scrolling (refs #604) (2) X-Git-Tag: 1.7.5~60 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5b9cb07d0169e0b1888398c0473c690d7476e12b;p=tt-rss.git tweak cdmExpandArticle behavior with scrolling (refs #604) (2) --- diff --git a/js/viewfeed.js b/js/viewfeed.js index a557b1b1..014946af 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1392,10 +1392,8 @@ function cdmExpandArticle(id) { var new_offset = $("RROW-" + id).offsetTop; - $("headlines-frame").scrollTop += (new_offset-old_offset); - -// if ($("RROW-" + id).offsetTop != old_offset) -// $("headlines-frame").scrollTop = new_offset; + if (old_offset > new_offset) + $("headlines-frame").scrollTop -= (old_offset-new_offset); toggleUnread(id, 0, true); toggleSelected(id);