You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@adamdbradleycanOverscroll was being set to false by default so PTR was never able to run, but I see some flickering on iOS and the complete function isn't being recognized.
I was having some unexpected behaviour with the pull to refresh so I tried the exact example of the docs in a new clean ionic2 project (Hello Ionic) running alpha56. I still have the following bugs:
doStarting() method is not being called. By the example from the docs I'd expect to see the "Pull started!" in the console but it never shows up.
the refresher (icon-refreshing) won't stay in the screen. As soon as the pull is released, the arrow icon changes to the ionic icon and disappear. Is this the expected behaviour? Or should the icon-refreshing be there until the .complete() method is called?
also as mentioned before (or in another issue), if you have a long list (bigger than the screen) and scroll down, when scrolling up the refresh is triggered. It should be trigged only on pulling from the top of your content.
I added a few fixes for emitting events, including to emit the starting event now. These fixes should get in with the beta.1 release. Going to look into the other issues for the beta.2 release. Let me know if you find any more issues before then! 😄
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
fix(scroll): add pull to refresh Sass back to core component
fix(scroll): canOverscroll was set to false which prevented PTR from …
brandyscarney commentedon Jan 27, 2016
@adamdbradley
canOverscrollwas being set tofalseby default so PTR was never able to run, but I see some flickering on iOS and thecompletefunction isn't being recognized.matiboy commentedon Jan 27, 2016
@brandyscarney Thank you for being so responsive!
Related but different issue: in the docs, the
refreshhandler seems to receive$eventandrefresherbut it seems that:
$eventactually comes as theRefresherobject indoRefreshandrefresheris ignored (no second parameter passed todoRefresh)andrefedalto commentedon Feb 9, 2016
I was having some unexpected behaviour with the pull to refresh so I tried the exact example of the docs in a new clean ionic2 project (Hello Ionic) running alpha56. I still have the following bugs:
doStarting() method is not being called. By the example from the docs I'd expect to see the "Pull started!" in the console but it never shows up.
the refresher (icon-refreshing) won't stay in the screen. As soon as the pull is released, the arrow icon changes to the ionic icon and disappear. Is this the expected behaviour? Or should the icon-refreshing be there until the .complete() method is called?
also as mentioned before (or in another issue), if you have a long list (bigger than the screen) and scroll down, when scrolling up the refresh is triggered. It should be trigged only on pulling from the top of your content.
Hope this helps :)
sb8244 commentedon Feb 15, 2016
I made a duplicate, oops #5456
Addressing @andrefedalto above. I've done some digging as well, and confirmed 1&2:
next()commented out. Removing it triggers start:setScrollLockis being called which calls deactivate. It looks like it's being called immediately after the tail animation beginsFrom what I see, It looks like this bit of code is being implemented still, although it comes off from the documentation as it working.
refactor(pull-to-refresh): emit starting event and change all events …
[-]bug: <ion-refresher> not working in Alpha51[/-][+]Fix Pull to Refresh (ion-refresher)[/+]brandyscarney commentedon Feb 17, 2016
I added a few fixes for emitting events, including to emit the starting event now. These fixes should get in with the beta.1 release. Going to look into the other issues for the beta.2 release. Let me know if you find any more issues before then! 😄
4 remaining items
fix(pull-to-refresh): set threshold so the pull to refresh will show …
fix(pull-to-refresh): add missing function call and move class to host
brandyscarney commentedon Feb 22, 2016
Fixed most of the existing bugs:
startevent is now being emittedRemaining issues:
adamdbradley commentedon Feb 28, 2016
All of these have been addressed in this refactor: 91df5f9
Thanks
fix(refresher): get scrollTop from the scroll element to prevent refr…
docs(refresher): update API docs for refresher and demo
Barathwaja commentedon Sep 2, 2016
Ref. : #7914 Ion-refresher functionality works but refresher icon and other stuffs are blank in v2.
jayzyaj commentedon Jul 18, 2018
Hi there. I am having a problem with ion-slides. This is the link
ionitron-bot commentedon Sep 1, 2018
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.