From d87c2aef6168b5e65c4d4c8e7841de36f467d29b Mon Sep 17 00:00:00 2001 From: Andy Tudhope Date: Sat, 13 Apr 2019 09:09:36 +0200 Subject: [PATCH] Fixes sticky header --- src/modules/CategoryHeader/CategoryHeader.module.scss | 1 + src/modules/Dapps/Dapps.jsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/CategoryHeader/CategoryHeader.module.scss b/src/modules/CategoryHeader/CategoryHeader.module.scss index c78e1c8..a55baa6 100644 --- a/src/modules/CategoryHeader/CategoryHeader.module.scss +++ b/src/modules/CategoryHeader/CategoryHeader.module.scss @@ -6,6 +6,7 @@ display: flex; align-items: center; padding: calculateRem(15); + z-index: 99; &.active { box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.25); diff --git a/src/modules/Dapps/Dapps.jsx b/src/modules/Dapps/Dapps.jsx index 2562c05..80e07d6 100644 --- a/src/modules/Dapps/Dapps.jsx +++ b/src/modules/Dapps/Dapps.jsx @@ -18,7 +18,7 @@ class Dapps extends React.Component { componentDidMount() { this.scanHeaderPositions() - this.boundScroll = debounce(this.handleScroll.bind(this), 50) + this.boundScroll = debounce(this.handleScroll.bind(this), 1) window.addEventListener('scroll', this.boundScroll) }