UX: Never show back button if less than current position
This commit is contained in:
parent
46d96c9feb
commit
d067ee1c5a
|
@ -225,10 +225,11 @@ createWidget("timeline-scrollarea", {
|
||||||
|
|
||||||
let showButton = false;
|
let showButton = false;
|
||||||
const hasBackPosition =
|
const hasBackPosition =
|
||||||
|
position.lastRead &&
|
||||||
position.lastRead > 3 &&
|
position.lastRead > 3 &&
|
||||||
|
position.lastRead > position.current &&
|
||||||
Math.abs(position.lastRead - position.current) > 3 &&
|
Math.abs(position.lastRead - position.current) > 3 &&
|
||||||
Math.abs(position.lastRead - position.total) > 1 &&
|
Math.abs(position.lastRead - position.total) > 1 &&
|
||||||
position.lastRead &&
|
|
||||||
position.lastRead !== position.total;
|
position.lastRead !== position.total;
|
||||||
|
|
||||||
if (hasBackPosition) {
|
if (hasBackPosition) {
|
||||||
|
|
Loading…
Reference in New Issue