Skip to content

For small content scroll views, prevent "offscreen" scroll #10

@loopingGIT

Description

@loopingGIT

This is more a question than an issue, I have two lists, one with 20+ rows and another with 5. When scrolling the larger one, it moves the smaller one content out of screen. Was wondering if this could be prevented here, with something like:

scrollViewsStore.allObjects
            .filter { $0 != lastScrollingScrollView }
            .forEach { 
    if $0.contentIsBiggerThanScrollOffset(scrollView.contentOffset) {
        $0.setContentOffset(scrollView.contentOffset, animated: false)
    }
 }

Attached a video to show what I mean.
Thanks

Screen.Recording.2023-06-13.at.12.05.18.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions