Coder Social home page Coder Social logo

mspulltorefreshcontroller's People

Contributors

bogardon avatar honishi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mspulltorefreshcontroller's Issues

UI glitches when scrollView.pagingEnabled

Hiya,

Thanks for MSPullToRefreshController!

I've been trying to get MSRefreshDirectionLeft working on a scroll view with pagingEnabled = YES (the UI is similar to the weather widget in the notification centre), and haven't been having much luck.

It doesn't always bounce back to the inset returned by - (CGFloat)pullToRefreshController:(MSPullToRefreshController *)controller refreshingInsetForDirection:(MSRefreshDirection)direction. Works fine if I disable pagingEnabled.

Currently the best workaround I have is disabling paging in canEngageRefreshDirection and re-enabling it again in didEngageRefreshDirection after a short delay (and didDisengageRefreshDirection).

I can attach some sample code if you have any interest in helping out with this.

contentInset conflict

The code appears to assume that it has exclusive use of the scrollView.contentInset, at least in the relevant direction. I'm not sure what the best solution would be. Observing contentInset might be the beginning of a solution, but the changes to it could confuse the host app (depending on how it was being used), and PTRC would have to deal with observing its own stores to contentInset.

Alternatively, PTRC could act as a proxy for scrollView.contentInset. The host would access it there, and PTRC could calculate the composite inset and send it to scrollView. (I'm armwaving a bit here, but you get the idea.) An app that never sets contentInset could ignore the whole thing, of course.

My app not only sets contentInset, but it can change it as a side effect of a refresh.

Missing license

Hi,

This looks great. I'd like to use it in something I'm working on, but it's missing a license. Any chance you'd consider formally slapping MIT/X11 (or something similarly permissive) on it?

Thanks!

Pull To Refresh Not hiding after refresh

Hi there,
A wonderful component and the custompulltorefresh is great.

However, i have an issue where the customrefreshview does not hide after a refresh

  1. Pull down to refresh (Working)
  2. After the event, the refresh view does not hide.
  3. Pull to refresh does work multiple times, but with the customview still visible.
    The example works perfectly fine. I have ran through the code and nothing suspicious.

Any suggestions.

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.