mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-02-13 17:53:16 +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();
|
e.preventDefault();
|
||||||
this.moveOldMessageIndex(e.which === 38);
|
this.moveOldMessageIndex(e.which === 38);
|
||||||
} else if (e.which == 33) {
|
} else if (e.which == 33) {
|
||||||
const buf = $(this.$refs.messages);
|
var buf = document.getElementsByClassName('chat-messages')[0];
|
||||||
buf.scrollTop(buf.scrollTop() - 50);
|
buf.scrollTop = buf.scrollTop - 100;
|
||||||
} else if (e.which == 34) {
|
} else if (e.which == 34) {
|
||||||
const buf = $(this.$refs.messages);
|
var buf = document.getElementsByClassName('chat-messages')[0];
|
||||||
buf.scrollTop(buf.scrollTop() + 50);
|
buf.scrollTop = buf.scrollTop + 100;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
moveOldMessageIndex(up) {
|
moveOldMessageIndex(up) {
|
||||||
|
Loading…
Reference in New Issue
Block a user