Mercurial > libervia-templates
diff sat_templates/templates/default/static/chat.js @ 329:6a26c8a43d10
bulma (chat): fix chat:
those change are done to have a minimal chat working, but it's really basic. A
full-featured chat should come in a future version.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 07 May 2021 15:38:10 +0200 |
parents | e9f0a4215e46 |
children |
line wrap: on
line diff
--- a/sat_templates/templates/default/static/chat.js Sat May 01 18:47:35 2021 +0200 +++ b/sat_templates/templates/default/static/chat.js Fri May 07 15:38:10 2021 +0200 @@ -43,7 +43,7 @@ var mutationCb = function(mutationsList) { scrollPos = messages.scrollTop + messages.clientHeight; - if (messages.lastChild.offsetTop - scrollPos - 10 <= 0) { + if (messages.lastChild.offsetTop - scrollPos - 150 <= 0) { // we auto scroll only if we are at the bottom of the page // else the use is probably checking history // Note thas this doesn't take margin into account,