diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-01 21:45:28 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-01 21:45:28 +0800 |
commit | 733bb28c1c7349dca535169b8113c4984ed41117 (patch) | |
tree | 83e4442f3de6b2d874cb0c5e7e140222ff87e6b5 /packages/website | |
parent | 3d1c2cb29619bd503131204beca8e7a59d3130a6 (diff) | |
download | dexon-sol-tools-733bb28c1c7349dca535169b8113c4984ed41117.tar.gz dexon-sol-tools-733bb28c1c7349dca535169b8113c4984ed41117.tar.zst dexon-sol-tools-733bb28c1c7349dca535169b8113c4984ed41117.zip |
Fix bug where main content scrollbar wasn't showing up after navigating back in browser history via keyboard shortcut
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/pages/documentation/home.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/website/ts/pages/documentation/home.tsx b/packages/website/ts/pages/documentation/home.tsx index d257534f9..568564873 100644 --- a/packages/website/ts/pages/documentation/home.tsx +++ b/packages/website/ts/pages/documentation/home.tsx @@ -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,9 +538,11 @@ export class Home extends React.Component<HomeProps, HomeState> { }); } private _onMainContentHover(_event: React.FormEvent<HTMLInputElement>): void { - this.setState({ - isHoveringMainContent: true, - }); + if (!this.state.isHoveringMainContent) { + this.setState({ + isHoveringMainContent: true, + }); + } } private _onMainContentHoverOff(): void { this.setState({ |