mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
Make composer sliding animation less jumpy when replying
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import Composer from 'flarum/components/composer';
|
||||
import ReplyComposer from 'flarum/components/reply-composer';
|
||||
import DiscussionPage from 'flarum/components/discussion-page';
|
||||
|
||||
export default function(app) {
|
||||
app.composingReplyTo = function(discussion) {
|
||||
return this.composer.component instanceof ReplyComposer &&
|
||||
this.composer.component.props.discussion === discussion;
|
||||
this.composer.component.props.discussion === discussion &&
|
||||
this.composer.position() !== Composer.PositionEnum.HIDDEN;
|
||||
};
|
||||
|
||||
app.viewingDiscussion = function(discussion) {
|
||||
|
Reference in New Issue
Block a user