Skip to content

Commit

Permalink
Target the middle of the screen when jumping to a message.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Feb 16, 2021
1 parent 04b7cb1 commit 2779d7e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1066,9 +1066,9 @@ private void moveToPosition(int position, @Nullable Runnable onMessageNotFound)
pulsePosition = position;
}

list.smoothScrollToPosition(p);
layoutManager.scrollToPositionWithOffset(p, list.getHeight() / 4);
} else {
layoutManager.scrollToPosition(p);
layoutManager.scrollToPositionWithOffset(p, list.getHeight() / 4);
getListAdapter().pulseAtPosition(position);
}
})
Expand Down

0 comments on commit 2779d7e

Please sign in to comment.