diff --git a/resources/assets/js/pages/manage/messenger.vue b/resources/assets/js/pages/manage/messenger.vue index b117dc0c0..e14a7e996 100644 --- a/resources/assets/js/pages/manage/messenger.vue +++ b/resources/assets/js/pages/manage/messenger.vue @@ -510,9 +510,16 @@ export default { if (index > -1) { const el = this.$refs[`dialog_${this.dialogList[index]?.id}`] if (el && el[0]) { + if (el[0].classList.contains("common-shake")) { + return + } $A.scrollIntoViewIfNeeded(el[0]) - el[0].classList.remove("common-shake") - requestAnimationFrame(_ => el[0].classList.add("common-shake")) + requestAnimationFrame(_ => { + el[0].classList.add("common-shake") + setTimeout(_ => { + el[0].classList.remove("common-shake") + }, 600) + }) } } },