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