question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

stickyHeader prevents touch events on foreground

See original GitHub issue

When both renderForeground and renderStickyHeader are supplied, touch events no longer register on the foreground header.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:8
  • Comments:16

github_iconTop GitHub Comments

6reactions
bgoyal2222commented, Jul 20, 2017

isForegroundTouchable this property they have added to solve that issue

5reactions
daleside710commented, Oct 24, 2018

Add “stickHeaderheight” and add scrollEvent props like this: scrollEvent={event => { if ( event.nativeEvent.contentOffset.y <= 0 && this.state.stickHeaderHeight > 0 ) this.setState({ stickHeaderHeight: 0 }); else if ( event.nativeEvent.contentOffset.y > 0 && this.state.stickHeaderHeight === 0 ) this.setState({ stickHeaderHeight: 50 + statusBarHeight }); }} It works perffect for me. Good luck.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't catch touch event of Child View of Header of Sticky ...
It always catch touch event for whole "header". I try to implement click listener for class ViewHolder of Header on ( HeaderAdapter )...
Read more >
An event for CSS position:sticky - Chrome Developers
Using an IntersectionObserver , I show how you can fire a custom event when position:sticky elements become fixed or when they stop sticking ......
Read more >
Create a Sticky Header That Responds to Scrolling - ProtoPie
This will help in preventing unwanted taps where the cards are not visible. Now drag the Card list layer inside Scroll in the...
Read more >
Sticky Headers: 5 Ways to Make Them Better
A version of this pattern is the partially sticky header, which (re)appears at the top of the page as soon as the user...
Read more >
How to Hide/Reveal a Sticky Header on Scroll (With JavaScript)
2. Add the Sticky Header CSS ; 4, position: fixed;. 5, top: 0;. 6 ; 8, display: flex;. 9, justify-content: center;. 10 ;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found