From d111fe27bb85b001c063c116584221c9aed0a1b3 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 3 Jan 2019 14:34:18 -0700 Subject: [PATCH] Revert "Merge pull request #2396 from matrix-org/travis/room-list-hover" This reverts commit 5098b28672ecd246dce74a7e7f140ad9be5e5ff9. --- src/components/views/rooms/RoomList.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index af6533296ea..df2a2428527 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -86,7 +86,6 @@ module.exports = React.createClass({ incomingCallTag: null, incomingCall: null, selectedTags: [], - hover: false, }; }, @@ -295,17 +294,6 @@ module.exports = React.createClass({ this.forceUpdate(); }, - onMouseEnter: function(ev) { - this.setState({hover: true}); - }, - - onMouseLeave: function(ev) { - this.setState({hover: false}); - - // Refresh the room list just in case the user missed something. - this._delayedRefreshRoomList(); - }, - _delayedRefreshRoomList: new rate_limited_func(function() { this.refreshRoomList(); }, 500), @@ -358,11 +346,6 @@ module.exports = React.createClass({ }, refreshRoomList: function() { - if (this.state.hover) { - // Don't re-sort the list if we're hovering over the list - return; - } - // TODO: ideally we'd calculate this once at start, and then maintain // any changes to it incrementally, updating the appropriate sublists // as needed. @@ -710,8 +693,7 @@ module.exports = React.createClass({ const subListComponents = this._mapSubListProps(subLists); return ( -
+
{ subListComponents }
);