From 7ac0f0e487b8e4e99269fb4ef161ce2829c94657 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 3 Apr 2018 17:14:52 +0200 Subject: [PATCH] [scss.container] removed message stack apparition animation [vue.auth.channel] removed animation override --- webpack/scss/container.scss | 2 +- webpack/vue/auth/channel.vue | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/webpack/scss/container.scss b/webpack/scss/container.scss index 123a215..f8492c0 100644 --- a/webpack/scss/container.scss +++ b/webpack/scss/container.scss @@ -112,7 +112,7 @@ flex-wrap: wrap; transition: transform .1s ease-in-out; - animation: slide-list .3s cubic-bezier(.49, .4, .26, 1.93); + // animation: slide-list .3s cubic-bezier(.49, .4, .26, 1.93); // {1} Meta Data // & > span.meta{ diff --git a/webpack/vue/auth/channel.vue b/webpack/vue/auth/channel.vue index 9f522b4..a04cc48 100644 --- a/webpack/vue/auth/channel.vue +++ b/webpack/vue/auth/channel.vue @@ -108,14 +108,8 @@ export default { /* (1) If new messages -> scroll to bottom */ - if( stack_length > this.stack_length ){ - - this.$refs.stack.scrollTop = 10000; - - // manage overriding css animation - setTimeout( () => { this.$refs.stack.scrollTop = 10000 }, 300 ); - - } + if( stack_length > this.stack_length ) + this.$refs.stack.scrollTop = this.$refs.stack.scrollHeight; /* (2) If new messages -> update stack length */ if( stack_length != this.stack_length )