FIX: Don't show "Go Back" at the bottom of the timeline

This commit is contained in:
Robin Ward 2016-05-18 17:26:13 -04:00
parent 559fa36c18
commit 178f3b822e
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D

View File

@ -133,7 +133,7 @@ createWidget('timeline-scrollarea', {
];
if (position.lastRead) {
if (position.lastRead && position.lastRead < attrs.topic.posts_count) {
const lastReadTop = Math.round(position.lastReadPercentage * SCROLLAREA_HEIGHT);
if (lastReadTop > (before + SCROLLER_HEIGHT)) {
result.push(this.attach('timeline-last-read', { top: lastReadTop, lastRead: position.lastRead }));