mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-02-09 06:33:29 +08:00
Fixed a bug which disabled scrolling.
Fixed a bug where the PageUp & PageDown keys would not scroll the text chat up or down. A bug report & the solution that I've just applied can be found here: https://forum.fivem.net/t/chat-scrolling-using-pageup-pagedown-keys-is-broken-solution-provided/43063
This commit is contained in:
parent
102e3f1a40
commit
2ebfa6fb11
@ -105,11 +105,11 @@ window.APP = {
|
||||
e.preventDefault();
|
||||
this.moveOldMessageIndex(e.which === 38);
|
||||
} else if (e.which == 33) {
|
||||
const buf = $(this.$refs.messages);
|
||||
buf.scrollTop(buf.scrollTop() - 50);
|
||||
var buf = document.getElementsByClassName('chat-messages')[0];
|
||||
buf.scrollTop = buf.scrollTop - 100;
|
||||
} else if (e.which == 34) {
|
||||
const buf = $(this.$refs.messages);
|
||||
buf.scrollTop(buf.scrollTop() + 50);
|
||||
var buf = document.getElementsByClassName('chat-messages')[0];
|
||||
buf.scrollTop = buf.scrollTop + 100;
|
||||
}
|
||||
},
|
||||
moveOldMessageIndex(up) {
|
||||
|
Loading…
Reference in New Issue
Block a user