diff options
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r-- | js/viewfeed.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 2f1ba24e0..07af91a67 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1132,7 +1132,11 @@ function cdmScrollToArticleId(id) { if (!e || !ctr) return; - ctr.scrollTop = e.offsetTop; + if (e.offsetTop+e.offsetHeight > (ctr.scrollTop+ctr.offsetHeight) || + e.offsetTop < ctr.scrollTop) { + + ctr.scrollTop = e.offsetTop; + } } catch (e) { exception_error("cdmScrollToArticleId", e); |