Commit a19e35d1 authored by JC Brand's avatar JC Brand

Use setTimeout instead of listening for `animationend`

For some reason the latter causes extreme lag when switching rooms
parent 137b40d4
......@@ -142,7 +142,7 @@ converse.plugins.add('converse-message-view', {
fadeOut () {
if (_converse.animate) {
this.el.addEventListener('animationend', () => this.remove(), {'once': true});
setTimeout(() => this.remove(), 600);
u.addClass('fade-out', this.el);
} else {
this.remove();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment