Fix bug where main content scrollbar wasn't showing up after navigating back in browser history via keyboard shortcut
This commit is contained in:
@@ -395,6 +395,7 @@ export class Home extends React.Component<HomeProps, HomeState> {
|
||||
overflow: this.state.isHoveringMainContent ? 'auto' : 'hidden',
|
||||
}}
|
||||
onMouseEnter={this._onMainContentHover.bind(this)}
|
||||
onMouseOver={this._onMainContentHover.bind(this)}
|
||||
onMouseLeave={this._onMainContentHoverOff.bind(this)}
|
||||
>
|
||||
<div>
|
||||
@@ -537,10 +538,12 @@ export class Home extends React.Component<HomeProps, HomeState> {
|
||||
});
|
||||
}
|
||||
private _onMainContentHover(_event: React.FormEvent<HTMLInputElement>): void {
|
||||
if (!this.state.isHoveringMainContent) {
|
||||
this.setState({
|
||||
isHoveringMainContent: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
private _onMainContentHoverOff(): void {
|
||||
this.setState({
|
||||
isHoveringMainContent: false,
|
||||
|
||||
Reference in New Issue
Block a user