mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-02-09 06:33:29 +08:00
Merge pull request #14 from TomGrobbe/patch-1
Fixed a bug which disabled scrolling.
This commit is contained in:
commit
2415bad533
@ -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