From 5b9d3b119fe4d6e0d566f8414af72e5ab9318690 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Fri, 26 Aug 2016 15:08:47 +0100 Subject: [PATCH] Click on stuck header scrolls to that header, collapses expands for none stuck header --- src/components/structures/RoomSubList.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index f3122dec..cce68b18 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -160,9 +160,10 @@ var RoomSubList = React.createClass({ } this.props.onShowMoreRooms(); + this.props.onHeaderClick(isHidden); + } else { + this.props.onHeaderClick(isHidden, this.refs.header.dataset.originalPosition); } - ev.persist(); - this.props.onHeaderClick(ev, isHidden); }, tsOfNewestEvent: function(room) {