mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-02-09 06:33:29 +08:00
Merge pull request #138 from Zeemahh/fix/chat-scroll
fix: scroll bug when switching chat channel (isChannel)
This commit is contained in:
commit
c75152c238
@ -397,6 +397,9 @@ export default Vue.extend({
|
||||
this.modeIdx = (this.modeIdx + 1) % this.modes.length;
|
||||
} while (this.modes[this.modeIdx].hidden);
|
||||
}
|
||||
|
||||
const buf = document.getElementsByClassName('chat-messages')[0];
|
||||
setTimeout(() => buf.scrollTop = buf.scrollHeight, 0);
|
||||
}
|
||||
|
||||
this.resize();
|
||||
|
Loading…
Reference in New Issue
Block a user