stickyHeader prevents touch events on foreground
See original GitHub issueWhen both renderForeground
and renderStickyHeader
are supplied, touch events no longer register on the foreground header.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:16
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
isForegroundTouchable this property they have added to solve that issue
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.