From 39632428d0df7eefc6fddd0b64b9747bb91ffe52 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 13 Feb 2019 18:36:19 +0100 Subject: [PATCH] remove throttling after improving LazyRenderList perf --- src/components/structures/RoomSubList.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index e5a96d0923..a66447a83d 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -29,7 +29,6 @@ import { Group } from 'matrix-js-sdk'; import PropTypes from 'prop-types'; import RoomTile from "../views/rooms/RoomTile"; import LazyRenderList from "../views/elements/LazyRenderList"; -import * as _ from "lodash"; // turn this on for drop & drag console debugging galore const debug = false; @@ -60,15 +59,6 @@ const RoomSubList = React.createClass({ }, getInitialState: function() { - // throttle updates to LazyRenderList - // this._onScroll = _.throttle( - // this._onScroll, 50, - // {leading: false, trailing: true}, - // ); - // this._updateLazyRenderHeight = _.throttle( - // this._updateLazyRenderHeight, 100, - // {leading: false, trailing: true}, - // ); return { hidden: this.props.startAsHidden || false, // some values to get LazyRenderList starting