Code Monkey home page Code Monkey logo

psfadingscrollview's People

Contributors

vugla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

psfadingscrollview's Issues

Button taps interfere with scrolling action

Firstly, thank you for this project.

Issue: when attempting to drag on the scrollView, starting the drag within a button will cause the scroll to fail if there is even the slightest delay before the drag gesture starts. This causes the button to act as though the user has tapped-and-held within the button, and scrollView scrolling does not start. This makes the control very hard to use.

I am not sure how this is resolved. Ideally, if dragging is detected, the button selection is cancelled and the dragging gesture is transferred to the scrollView, allowing the scrollView to scroll according to the gesture.

Regards.

[EDIT]

After some research on StackOverflow it appears that this is a ScrollView related issue, not an issue relating specifically to this library.

To fix: ensure that the scrollView has the following properties set:

self.delaysContentTouches = false
self.canCancelContentTouches = true

And then we add this to PSFadingScrollView

override func touchesShouldCancel(in view: UIView) -> Bool
{
    if view is UIButton {
        return true
    }
    return super.touchesShouldCancel(in: view)
}

I hope this helps.

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.