Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible reopen header when the mouse pointer covers the old header area. #173

Open
michaelcuneo opened this issue Feb 16, 2020 · 1 comment

Comments

@michaelcuneo
Copy link

When I'm scrolling down in a website, I have to scroll back up slightly just to force the header to reappear. it would be slightly more convenient for the end user I think, if the head just reappeared when the mouse gets near that area?

I can come up with a solution and add this to a fork, and see how it goes...

@samullman
Copy link

samullman commented May 7, 2020

 maybePin () {
    if (this.state.state == "unpinned" ) {
      this.pin();
    }
  }
 maybeUnpin () {
    if (this.state.state == "pinned" ) {
      this.unpin();
    } 
  }
 <div style={wrapperStyles} className={wrapperClassName} onMouseEnter={ this.maybePin.bind(this )} onMouseLeave={ this.maybeUnpin.bind(this )} >
        <div
          ref={this.setRef}
          {...rest}
          style={innerStyle}
          className={className}
          
        >
          {this.props.children}
        </div>

      </div>

@KyleAMathews

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants