Fix down arrow again
This commit is contained in:
parent
9c413cba5c
commit
04dd2b06f5
@ -1805,7 +1805,7 @@ export default class ChatBubbles {
|
|||||||
|
|
||||||
public async onGoDownClick() {
|
public async onGoDownClick() {
|
||||||
if(!this.replyFollowHistory.length) {
|
if(!this.replyFollowHistory.length) {
|
||||||
this.onScroll(true, undefined, true);
|
// this.onScroll(true, undefined, true);
|
||||||
this.chat.setMessageId(/* , dialog.top_message */);
|
this.chat.setMessageId(/* , dialog.top_message */);
|
||||||
// const dialog = this.appMessagesManager.getDialogByPeerId(this.peerId)[0];
|
// const dialog = this.appMessagesManager.getDialogByPeerId(this.peerId)[0];
|
||||||
|
|
||||||
@ -5267,7 +5267,7 @@ export default class ChatBubbles {
|
|||||||
log('change', side, value);
|
log('change', side, value);
|
||||||
|
|
||||||
this.scrollable.loadedAll[side] = value;
|
this.scrollable.loadedAll[side] = value;
|
||||||
|
this.scrollable.onScroll(); // ! WARNING
|
||||||
// return;
|
// return;
|
||||||
|
|
||||||
if(!checkPlaceholders) {
|
if(!checkPlaceholders) {
|
||||||
|
@ -159,13 +159,13 @@ export class ScrollableBase {
|
|||||||
|
|
||||||
public scrollIntoViewNew(options: Omit<ScrollOptions, 'container'>) {
|
public scrollIntoViewNew(options: Omit<ScrollOptions, 'container'>) {
|
||||||
// return Promise.resolve();
|
// return Promise.resolve();
|
||||||
this.removeListeners();
|
// this.removeListeners();
|
||||||
return fastSmoothScroll({
|
return fastSmoothScroll({
|
||||||
...options,
|
...options,
|
||||||
container: this.container
|
container: this.container
|
||||||
}).finally(() => {
|
});/* .finally(() => {
|
||||||
this.setListeners();
|
this.setListeners();
|
||||||
});
|
}); */
|
||||||
}
|
}
|
||||||
|
|
||||||
public onScroll = () => {
|
public onScroll = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user