aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-01 21:45:28 +0800
committerFabio Berger <me@fabioberger.com>2018-10-01 21:45:28 +0800
commit733bb28c1c7349dca535169b8113c4984ed41117 (patch)
tree83e4442f3de6b2d874cb0c5e7e140222ff87e6b5 /packages/website
parent3d1c2cb29619bd503131204beca8e7a59d3130a6 (diff)
downloaddexon-sol-tools-733bb28c1c7349dca535169b8113c4984ed41117.tar
dexon-sol-tools-733bb28c1c7349dca535169b8113c4984ed41117.tar.gz
dexon-sol-tools-733bb28c1c7349dca535169b8113c4984ed41117.tar.bz2
dexon-sol-tools-733bb28c1c7349dca535169b8113c4984ed41117.tar.lz
dexon-sol-tools-733bb28c1c7349dca535169b8113c4984ed41117.tar.xz
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.tsx9
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({