1
0
mirror of https://github.com/flarum/core.git synced 2025-10-11 15:04:25 +02:00

Improve mobile composer behaviour

- Don't scroll to the bottom of the discussion when selecting "Reply"
  from the menu if the composer is in full screen mode (ie. on mobile).
  ref #1271

- After posting a reply, scroll to the end of the discussion

- Reduce the textarea height - previously it was 100vh, but this doesn't
  account for the height of the iOS keyboard, so I've just arbitrarily
  chosen 300px instead. There may be a better solution for this.
  ref #1269
This commit is contained in:
Toby Zerner
2017-11-05 16:25:21 +10:30
parent 54597ee5eb
commit 094345de85
5 changed files with 25 additions and 12 deletions

View File

@@ -162,7 +162,7 @@ export default {
}
app.composer.show();
if (goToLast && app.viewingDiscussion(this)) {
if (goToLast && app.viewingDiscussion(this) && ! app.composer.isFullScreen()) {
app.current.stream.goToNumber('reply');
}