diff --git a/src/components/shell/shell.tsx b/src/components/shell/shell.tsx index fa09b0239..4cc6ae99d 100644 --- a/src/components/shell/shell.tsx +++ b/src/components/shell/shell.tsx @@ -43,7 +43,6 @@ const mapStateToProps = state => ({ }); const ON_PLAYER_RECT_CHANGE_DEBOUNCE_DELAY: number = 100; -const RESIZE_DEBOUNCE_DELAY: number = 0; const PLAYER_SIZE: {[size: string]: string} = { TINY: 'tiny', @@ -213,7 +212,7 @@ class Shell extends Component { */ componentDidMount() { const {player, eventManager} = this.props; - eventManager.listen(window, 'resize', debounce(this._onWindowResize, RESIZE_DEBOUNCE_DELAY)); + eventManager.listen(window, 'resize', debounce(this._onWindowResize, ON_PLAYER_RECT_CHANGE_DEBOUNCE_DELAY)); eventManager.listen(document, 'scroll', debounce(this._updatePlayerClientRect, ON_PLAYER_RECT_CHANGE_DEBOUNCE_DELAY)); eventManager.listen(document, 'click', debounce(this._handleClickOutside, ON_PLAYER_RECT_CHANGE_DEBOUNCE_DELAY)); this._playerResizeWatcher = new ResizeWatcher();