fix scroll dwon btn on chat

set to work dynamically
This commit is contained in:
tiago.kayaya
2021-09-24 16:10:24 +01:00
parent 45197375ff
commit f4ec6826ad
4 changed files with 8 additions and 4 deletions
@@ -108,7 +108,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
this.startPosition = e.srcElement.scrollTop;
let scroll = e.srcElement.scrollTop;
let windowHeight = e.srcElement.scrollHeight;
let containerHeight = windowHeight - 596.59997558594;
let containerHeight = windowHeight - e.srcElement.clientHeight;
if (scroll > this.currentPosition) {
//alert('BOTTOM');