Explorar el Código

fix: Scroll chat to bottom

gugdun hace 9 meses
padre
commit
d44040c8dd
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/views/chat.ejs

+ 1 - 0
src/views/chat.ejs

@@ -119,6 +119,7 @@
         return false
     }
     window.addEventListener("pageshow", function (e) {
+        messageList.firstElementChild.scrollIntoView(false)
         pollMessages()
     })
     window.addEventListener("pagehide", function (e) {