diff options
| author | RblSb <msrblsb@gmail.com> | 2020-03-02 22:56:56 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-03-02 22:56:56 +0300 |
| commit | 3c5e157371e623630c648a274386c11b7cae3586 (patch) | |
| tree | 530755eda41c18c6c1f6ac7a1363459ad60a3095 /src/client | |
| parent | 5975bccc39f941044649d0ba72f43e5340396c66 (diff) | |
Try to fix rare autoscroll problem
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/Main.hx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx index 5631594..9d9b90d 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -528,7 +528,7 @@ class Main { } textDiv.innerHTML = text; - final isInChatEnd = msgBuf.scrollHeight - msgBuf.scrollTop == msgBuf.clientHeight; + final isInChatEnd = msgBuf.scrollTop + msgBuf.clientHeight >= msgBuf.scrollHeight - 1; userDiv.appendChild(tstamp); userDiv.appendChild(nameDiv); userDiv.appendChild(textDiv); |
