Giter VIP home page Giter VIP logo

Comments (8)

hstdt avatar hstdt commented on May 29, 2024 1

@hstdt @mohanthakur92 I'm having same issue, did you guys solve it?

No, you can try this one. https://github.com/pujiaxin33/JXPagingView

from twitterprofile.

mohanthakur92 avatar mohanthakur92 commented on May 29, 2024

@OfTheWolf can you please help me in this?

from twitterprofile.

OfTheWolf avatar OfTheWolf commented on May 29, 2024

@mohanthakur92 Can you share a minimum sample project to replicate this please?

from twitterprofile.

mohanthakur92 avatar mohanthakur92 commented on May 29, 2024

@OfTheWolf ok i will share the sample code. Basically in the bottom tabs i used tableview and when i reload tableview and scrolls it tableview moves to top (its insets changes)

from twitterprofile.

hstdt avatar hstdt commented on May 29, 2024

I believe it's caused by updateOverlayScrollContentSize in ContainerViewController, but my fix still not perfect.

bottom tableview/scrollview content size changed(estimatedRowHeight tableView when scrolls to bottom, or load more) --> overlayScrollView content size change --> overlayScrollView scrolls --> bottom tableview/scrollview scrolls(here causes Scrolls to Top even if revert contentOffset.Y, and drag scroll gesture will be interrupted)

CleanShot 2022-05-10 at 00 11 40

    private func updateOverlayScrollContentSize(with bottomView: UIView) {
        let contentOffsetY = overlayScrollView.contentOffset.y
        self.overlayScrollView.contentSize = getContentSize(for: bottomView)
        if contentOffsetY > 0 {
            // revert contentOffsetY after contentSize changes, but still not perfect
            self.overlayScrollView.setContentOffset(.init(x: 0, y: contentOffsetY), animated: false)
        }
    }

from twitterprofile.

BH102 avatar BH102 commented on May 29, 2024

@hstdt @mohanthakur92 I'm having same issue, did you guys solve it?

from twitterprofile.

BH102 avatar BH102 commented on May 29, 2024

When I use table view with static cell size everything works fine but when I use table view with dynamic cell size, the scrolling is lagging specially when scrolling up

from twitterprofile.

BH102 avatar BH102 commented on May 29, 2024

@hstdt @mohanthakur92 I'm having same issue, did you guys solve it?

No, you can try this one. https://github.com/pujiaxin33/JXPagingView

Thank you, I've used it it's great

from twitterprofile.

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.