mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 22:59:57 +08:00
Simplify composer animation
This commit is contained in:
@ -168,7 +168,7 @@ class Composer extends Component {
|
||||
|
||||
if (this.position() !== Composer.PositionEnum.FULLSCREEN) {
|
||||
this.updateBodyPadding();
|
||||
$('html, body').scrollTop(anchorToBottom ? $(document).height() : scrollTop);
|
||||
$('html, body').scrollTop(scrollTop);
|
||||
} else {
|
||||
this.component.focus();
|
||||
}
|
||||
|
Reference in New Issue
Block a user