Fixes sticky header
This commit is contained in:
parent
5cc9a8359e
commit
d87c2aef61
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue