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:
Penar Musaraj 2019-11-14 11:15:11 -05:00
parent 73e33ce243
commit f175afa0d9
1 changed files with 1 additions and 1 deletions

View File

@ -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");