Skip to content

Commit

Permalink
Update shell.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
yambenari24 committed Feb 7, 2025
1 parent 05cbfa1 commit 52bcaf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/shell/shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -213,7 +212,7 @@ class Shell extends Component<any, any> {
*/
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();
Expand Down

0 comments on commit 52bcaf4

Please sign in to comment.