Loading src/app/modules/comments/thread/thread.component.ts +9 −3 Original line number Original line Diff line number Diff line Loading @@ -202,6 +202,9 @@ export class CommentsThreadComponent { parent_path: parent_path, parent_path: parent_path, }); }); // if the list is scrolled to the bottom let scrolledToBottom = this.scrollView.nativeElement.scrollTop + this.scrollView.nativeElement.clientHeight >= this.scrollView.nativeElement.scrollHeight; if (comment) { if (comment) { await this.loadBlockedUsers(); await this.loadBlockedUsers(); this.comments.push(comment); this.comments.push(comment); Loading @@ -209,8 +212,11 @@ export class CommentsThreadComponent { this.detectChanges(); this.detectChanges(); if (scrolledToBottom) { this.commentsScrollEmitter.emit('bottom'); this.commentsScrollEmitter.emit('bottom'); this.scrollToBottom.next(true); this.scrollToBottom.next(true); } } catch (err) { }; } catch (err) { }; }); }); Loading Loading
src/app/modules/comments/thread/thread.component.ts +9 −3 Original line number Original line Diff line number Diff line Loading @@ -202,6 +202,9 @@ export class CommentsThreadComponent { parent_path: parent_path, parent_path: parent_path, }); }); // if the list is scrolled to the bottom let scrolledToBottom = this.scrollView.nativeElement.scrollTop + this.scrollView.nativeElement.clientHeight >= this.scrollView.nativeElement.scrollHeight; if (comment) { if (comment) { await this.loadBlockedUsers(); await this.loadBlockedUsers(); this.comments.push(comment); this.comments.push(comment); Loading @@ -209,8 +212,11 @@ export class CommentsThreadComponent { this.detectChanges(); this.detectChanges(); if (scrolledToBottom) { this.commentsScrollEmitter.emit('bottom'); this.commentsScrollEmitter.emit('bottom'); this.scrollToBottom.next(true); this.scrollToBottom.next(true); } } catch (err) { }; } catch (err) { }; }); }); Loading