mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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;
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user