Commit 0b7022f0 by FE

Merge branch 'issue-20190920' into pre

parents 5aa0d52c 65678b26
...@@ -78,6 +78,7 @@ class SearchResult extends PureComponent { ...@@ -78,6 +78,7 @@ class SearchResult extends PureComponent {
handleScroll = throttle(() => { handleScroll = throttle(() => {
let y = window.scrollY, let y = window.scrollY,
headY = this.searchHead.current.offsetTop; headY = this.searchHead.current.offsetTop;
// console.log(y);
if (y < this.prevScrollY && y > 0) { if (y < this.prevScrollY && y > 0) {
if (this.state.swipeDirection === this.swipeDown) { if (this.state.swipeDirection === this.swipeDown) {
...@@ -96,7 +97,8 @@ class SearchResult extends PureComponent { ...@@ -96,7 +97,8 @@ class SearchResult extends PureComponent {
if (this.state.swipeDirection === this.swipeDown) { if (this.state.swipeDirection === this.swipeDown) {
this.setState({ this.setState({
searchHeadStyle: { searchHeadStyle: {
top: `${y > headY ? y - 44 : y}px` // top: `${y > headY ? y - 44 : y}px`
top: `${y}px`
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment