Giter Site home page Giter Site logo

Comments (7)

maxep avatar maxep commented on August 19, 2024

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.

Ricardo1980 avatar Ricardo1980 commented on August 19, 2024

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.

https://vimeo.com/181096876

Example.zip

Not sure about what is the best solution.
Can you reproduce it?

from mxparallaxheader.

Ricardo1980 avatar Ricardo1980 commented on August 19, 2024

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.

Ricardo1980 avatar Ricardo1980 commented on August 19, 2024

@maxep Could you reproduce it? Thanks!

from mxparallaxheader.

maxep avatar maxep commented on August 19, 2024

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.

dmacanas avatar dmacanas commented on August 19, 2024

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:
screen shot 2016-09-21 at 4 06 19 pm

View structure after scrolling and the interaction doesn't work:
screen shot 2016-09-21 at 4 00 57 pm

from mxparallaxheader.

maxep avatar maxep commented on August 19, 2024

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 tableHeaderViewproperty. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.