FIX: removes stored scroll position in drawer (#20328)
This commit is contained in:
parent
5720bb7b64
commit
7cc0c59469
|
@ -84,12 +84,20 @@ export default class ChannelsList extends Component {
|
||||||
|
|
||||||
@action
|
@action
|
||||||
storeScrollPosition() {
|
storeScrollPosition() {
|
||||||
|
if (this.chatStateManager.isDrawerActive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const scrollTop = document.querySelector(".channels-list")?.scrollTop || 0;
|
const scrollTop = document.querySelector(".channels-list")?.scrollTop || 0;
|
||||||
this.session.channelsListPosition = scrollTop;
|
this.session.channelsListPosition = scrollTop;
|
||||||
}
|
}
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
_applyScrollPosition() {
|
_applyScrollPosition() {
|
||||||
|
if (this.chatStateManager.isDrawerActive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const position = this.chatStateManager.isFullPageActive
|
const position = this.chatStateManager.isFullPageActive
|
||||||
? this.session.channelsListPosition || 0
|
? this.session.channelsListPosition || 0
|
||||||
: 0;
|
: 0;
|
||||||
|
|
Loading…
Reference in New Issue