From 6d4e042bc36684a086d87678a96ed4cc527c43f2 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Sun, 21 Aug 2022 14:25:19 +0200 Subject: [PATCH] Fix down arrow again --- src/components/chat/bubbles.ts | 4 ++-- src/components/scrollable.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index bebcfdc73..0735078a0 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -1805,7 +1805,7 @@ export default class ChatBubbles { public async onGoDownClick() { if(!this.replyFollowHistory.length) { - this.onScroll(true, undefined, true); + // this.onScroll(true, undefined, true); this.chat.setMessageId(/* , dialog.top_message */); // const dialog = this.appMessagesManager.getDialogByPeerId(this.peerId)[0]; @@ -5267,7 +5267,7 @@ export default class ChatBubbles { log('change', side, value); this.scrollable.loadedAll[side] = value; - + this.scrollable.onScroll(); // ! WARNING // return; if(!checkPlaceholders) { diff --git a/src/components/scrollable.ts b/src/components/scrollable.ts index 2bb577de7..6e45062f9 100644 --- a/src/components/scrollable.ts +++ b/src/components/scrollable.ts @@ -159,13 +159,13 @@ export class ScrollableBase { public scrollIntoViewNew(options: Omit) { // return Promise.resolve(); - this.removeListeners(); + // this.removeListeners(); return fastSmoothScroll({ ...options, container: this.container - }).finally(() => { + });/* .finally(() => { this.setListeners(); - }); + }); */ } public onScroll = () => {