Giter Site home page Giter Site logo

Scrolling bug in the pagingViewController (IconsExample) when applying different width for selected cell in IconsExample about parchment HOT 9 CLOSED

rechsteiner avatar rechsteiner commented on May 18, 2024
Scrolling bug in the pagingViewController (IconsExample) when applying different width for selected cell in IconsExample

from parchment.

Comments (9)

rechsteiner avatar rechsteiner commented on May 18, 2024

Yeah, that's correct. I get same bug here as well. Not sure what could be causing that, but I'll try to get that fixed pretty soon 👍

from parchment.

rechsteiner avatar rechsteiner commented on May 18, 2024

I suspect this might have something to do with a bug I just fixed in #96, but I'm not 100% sure. At least I'm not able to reproduce the jumping after that fix. Could try out the latest master branch and see if you're still seeing this?

from parchment.

IVANKRUPSKI avatar IVANKRUPSKI commented on May 18, 2024

Unfortunately, bug is still there. I have 12 icons each 40 points in width, selected icon is 60 points in width.
I scroll the content controller one by one and selected paging menu item changes one by one, and when it reaches the middle, menu should scroll itself a bit, but it's slightly delayed and here is the flicker.

from parchment.

IVANKRUPSKI avatar IVANKRUPSKI commented on May 18, 2024

But you are right, there is no longer bug in your IconExample.
I will investigate why it is still there in our project.

from parchment.

IVANKRUPSKI avatar IVANKRUPSKI commented on May 18, 2024

Ok, I have noticed that it has definitely become better, however this flickering behavior is still there.
And the heavier the content controllers the buggier the behavior.

In your IconExample content controllers are empty, so you will hardly see any flicker.

In our case we have 12 collectionViews with hundreds of cells in each, so this does have an impact.
I reduced the number of cells to one per each collectionView and noticed that the bug almost disappeared.

from parchment.

IVANKRUPSKI avatar IVANKRUPSKI commented on May 18, 2024

And in order to see this bug one should scroll controllers rather fast one by one.

from parchment.

rechsteiner avatar rechsteiner commented on May 18, 2024

Managed to figure out what was causing this; seems to be a performance issue with the way I was updating the content offset when the user is scrolling. Should be fixed it #106 ✌️

Let me know if this fixes your issue!

from parchment.

IVANKRUPSKI avatar IVANKRUPSKI commented on May 18, 2024

Yes, now it works smoothly. Thanks!

from parchment.

rechsteiner avatar rechsteiner commented on May 18, 2024

Awesome 👍

from parchment.

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.