FIX: Revert mobile jump to last post behaviour
Disables jumping to bottom of the page (added in 87f0b56
) for mobile devices.
Fixes a regression with the mobile jump tool, and avoids users having to scroll up lots on mobile, since suggested topics and site footers can be lengthy.
This commit is contained in:
parent
73e33ce243
commit
f175afa0d9
|
@ -262,7 +262,7 @@ createWidget("timeline-scrollarea", {
|
|||
const position = this.position();
|
||||
this.state.scrolledPost = position.current;
|
||||
|
||||
if (position.current === position.scrollPosition) {
|
||||
if (position.current === position.scrollPosition || this.site.mobileView) {
|
||||
this.sendWidgetAction("jumpToIndex", position.current);
|
||||
} else {
|
||||
this.sendWidgetAction("jumpEnd");
|
||||
|
|
Loading…
Reference in New Issue