UX: Never show back button if less than current position

This commit is contained in:
Robin Ward 2021-10-26 14:53:49 -04:00
parent 46d96c9feb
commit d067ee1c5a
1 changed files with 2 additions and 1 deletions

View File

@ -225,10 +225,11 @@ createWidget("timeline-scrollarea", {
let showButton = false;
const hasBackPosition =
position.lastRead &&
position.lastRead > 3 &&
position.lastRead > position.current &&
Math.abs(position.lastRead - position.current) > 3 &&
Math.abs(position.lastRead - position.total) > 1 &&
position.lastRead &&
position.lastRead !== position.total;
if (hasBackPosition) {