Comments (7)
Thanks for your report. But I do not understand, the parallaxHeader's contentView never gets off the screen, only the height changed. Could you give a bit more context, where do you swap parallax.contentView.frame.origin.y
and parallax.view.frame.origin.y
? Maybe a sample project that reproduce the issue could help fixing this...
from mxparallaxheader.
Sorry, it is difficult to explain.
I created a video with your example modified (I only added a button to the bottom of the header and a couple of constraints, no code)
In the video you can see that it is possible to interact with the button (changes from blue to white) that is in the header, but once you scroll a lot, that is not possible. Not only that, but the tap is sent to the table and the cell is pressed, which is even worse. And if you don't use a component, it is also a problem, because taps will go to the table.
Using reveal I see that the parent view is outside the screen, perhaps that is the problem. In the second part of the problem I exchange the frame Y and as you can see, it works again the button.
Not sure about what is the best solution.
Can you reproduce it?
from mxparallaxheader.
I forgot to say that I think that the problem is that the parent view of the header is outside the screen. Perhaps there is some kind of internal OS optimization and touches are not passed to children views.
I tried to overwrite hitTest in the custom header view and if you scroll a lot, hits are not received. But in the initial position, it works.
from mxparallaxheader.
@maxep Could you reproduce it? Thanks!
from mxparallaxheader.
Hi @Ricardo1980
Thanks for the project, yes i can reproduce. I need to investigate, from what I see It's only happening with table view, can you confirm ?
from mxparallaxheader.
Hi,
I'm also experiencing a similar issue with a UITableViewController. It was working on a previous build but now on 0.5.2 there seems to be an issue.
I have 2 buttons in the header that filter data in my application. It used to register the interaction correctly but now passes that down to the tableView:didSelectRow: delegate. I see this behavior only when I have scrolled pass the minimum height value.
View structure when first loaded and working correctly:
View structure after scrolling and the interaction doesn't work:
from mxparallaxheader.
Hi,
I looked deeper into that issue and I found out the problem. This bug and others (#43, #44, #17) comes from recent changes made to support table view with sections. When a parallaxheader is added to a table view, it sets the UITableView's tableHeaderView
property. But the tableHeaderView
scrolls with the content and when scrolling up, the parallax header is drawn outside the bounds of the tableHeaderView, no touch is received. I will remove the support of table view sections waiting for a better solution.
from mxparallaxheader.
Related Issues (20)
- Implementation interferes with navbar customization HOT 1
- Items duplicates when added second time HOT 2
- maximumHeight added would be better HOT 1
- MXScrollView cancelled child parallaxHeader-UIScrollView touches HOT 1
- Apple will stop accepting submissions of apps that use UIWebView APIs HOT 2
- How can I set header view height & minimum height with programmatically HOT 3
- I am getting progress value greater than 1.0 initially. HOT 1
- MXScrollView crashes app HOT 21
- parallaxHeader.view not filling superview. HOT 1
- Weird width on MXParallaxHeader 1.1.0 HOT 13
- MXParallaxHeader Scroll issue inside UITableviewHeader HOT 1
- Swift Package Manager support HOT 1
- Keyboard appearance HOT 3
- Animating header height change HOT 1
- The bottom of view in Scrollview is not fully displayed. HOT 2
- Empty space at the bottom of MXScrollViewController HOT 1
- SwiftPackage manager issue HOT 1
- This project is no longer maintained HOT 4
- collectionView.parallaxHeader is nil HOT 1
- Alternative Library HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mxparallaxheader.