Revert "Fix Filepanel scroll position state lost when room is changed"
This commit is contained in:
parent
c04a8d326e
commit
972baa881b
3 changed files with 8 additions and 59 deletions
|
@ -32,24 +32,15 @@ class RoomScrollStateStore {
|
|||
//
|
||||
// pixelOffset: the number of pixels the window is scrolled down
|
||||
// from the focussedEvent.
|
||||
this._RoomViewScrollStateMap = {};
|
||||
this._FilePanelScrollStateMap = {};
|
||||
this._scrollStateMap = {};
|
||||
}
|
||||
|
||||
getRoomViewScrollState(roomId) {
|
||||
return this._RoomViewScrollStateMap[roomId];
|
||||
getScrollState(roomId) {
|
||||
return this._scrollStateMap[roomId];
|
||||
}
|
||||
|
||||
setRoomViewScrollState(roomId, scrollState) {
|
||||
this._RoomViewScrollStateMap[roomId] = scrollState;
|
||||
}
|
||||
|
||||
getFilePanelScrollState(roomId, scrollState) {
|
||||
return this._FilePanelScrollStateMap[roomId];
|
||||
}
|
||||
|
||||
setFilePanelScrollState(roomId, scrollState) {
|
||||
this._FilePanelScrollStateMap[roomId] = scrollState;
|
||||
setScrollState(roomId, scrollState) {
|
||||
this._scrollStateMap[roomId] = scrollState;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue