scroll top added

This commit is contained in:
ilmedova 2022-11-23 14:14:57 +05:00
parent 0b4166ce8a
commit e8563b2bc5
1 changed files with 1 additions and 2 deletions

View File

@ -167,8 +167,7 @@
});
window.setInterval(function() {
var elem = document.getElementById('chat-log');
elem.scrollTop = elem.scrollHeight;
$("#chat-log").scrollTop(function() { return this.scrollHeight; });
}, 1000);
</script>
@endsection