Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #37 #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix issue #37 #45

wants to merge 1 commit into from

Conversation

Sulinskii
Copy link

scroll not smooth while scroll small space and release your hand quickly

@rslowinski
Copy link

I find it really helpful, thanks!

@KirillKudaev
Copy link

Thank you! Currently doesn't work on my very first cell for some reason. Works for every other one. Trying to investigate...

@KirillKudaev
Copy link

KirillKudaev commented Nov 14, 2019

Solves some edge cases:



        let hasScrollingVelocity = isHorizontal ? (velocity.x != 0) : (velocity.y != 0)
let proposedContentOffsetCenterOrigin: CGFloat
if hasScrollingVelocity {
            let velocityDirectionMultiplier: CGFloat = (isHorizontal ? velocity.x : velocity.y) > 0 ? 1 : -1
            proposedContentOffsetCenterOrigin = velocityDirectionMultiplier * 10000
        } else {
            proposedContentOffsetCenterOrigin = (isHorizontal ? proposedContentOffset.x : proposedContentOffset.y) + midSide
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants