Browse Source

Fix down arrow again

master
Eduard Kuzmenko 2 years ago
parent
commit
04dd2b06f5
  1. 4
      src/components/chat/bubbles.ts
  2. 6
      src/components/scrollable.ts

4
src/components/chat/bubbles.ts

@ -1805,7 +1805,7 @@ export default class ChatBubbles { @@ -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 { @@ -5267,7 +5267,7 @@ export default class ChatBubbles {
log('change', side, value);
this.scrollable.loadedAll[side] = value;
this.scrollable.onScroll(); // ! WARNING
// return;
if(!checkPlaceholders) {

6
src/components/scrollable.ts

@ -159,13 +159,13 @@ export class ScrollableBase { @@ -159,13 +159,13 @@ export class ScrollableBase {
public scrollIntoViewNew(options: Omit<ScrollOptions, 'container'>) {
// return Promise.resolve();
this.removeListeners();
// this.removeListeners();
return fastSmoothScroll({
...options,
container: this.container
}).finally(() => {
});/* .finally(() => {
this.setListeners();
});
}); */
}
public onScroll = () => {

Loading…
Cancel
Save