Revert "Fix Filepanel scroll position state lost when room is changed"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user