Fix scroll to top in archive
This commit is contained in:
parent
acb909d2fa
commit
f156557b47
@ -8,10 +8,8 @@ import appDialogsManager from "../../../lib/appManagers/appDialogsManager";
|
|||||||
import { SliderSuperTab } from "../../slider";
|
import { SliderSuperTab } from "../../slider";
|
||||||
|
|
||||||
export default class AppArchivedTab extends SliderSuperTab {
|
export default class AppArchivedTab extends SliderSuperTab {
|
||||||
public static filterId = 1;
|
private static filterId = 1;
|
||||||
public loadedAll: boolean;
|
private wasFilterId: number;
|
||||||
public loadDialogsPromise: Promise<any>;
|
|
||||||
public wasFilterId: number;
|
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this.container.id = 'chats-archived-container';
|
this.container.id = 'chats-archived-container';
|
||||||
@ -22,6 +20,7 @@ export default class AppArchivedTab extends SliderSuperTab {
|
|||||||
this.scrollable.append(chatList);
|
this.scrollable.append(chatList);
|
||||||
this.scrollable.container.addEventListener('scroll', appDialogsManager.onChatsRegularScroll);
|
this.scrollable.container.addEventListener('scroll', appDialogsManager.onChatsRegularScroll);
|
||||||
this.scrollable.setVirtualContainer(chatList);
|
this.scrollable.setVirtualContainer(chatList);
|
||||||
|
this.scrollable.onScrolledTop = appDialogsManager.onChatsScrollTop;
|
||||||
this.scrollable.onScrolledBottom = appDialogsManager.onChatsScroll;
|
this.scrollable.onScrolledBottom = appDialogsManager.onChatsScroll;
|
||||||
///this.scroll.attachSentinels();
|
///this.scroll.attachSentinels();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user