question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat(refresher): use refresher in custom scroll content

See original GitHub issue

Prerequisites

Describe the Feature Request

ion-refresher should be attachable to custom scroll content, so it can be triggered independend of ion-content

Describe the Use Case

I have an application with segments. Depending on which segment is selected, a corresponding scrollable element should be displayed in ion-content, so that the scroll positions of scroll areas are maintained when the segment is changed.

Currently when ion-refresher is next child of ion-content, the custom scroll-area get sometimes stuck if you scroll too fast. Also sometimes the ion-refresher circle freezes and get stuck on screen.

This behavior can only be reproduces on native build (testet on ios)

Describe Preferred Solution

ion-refresher is attachable to custom scroll content

Describe Alternatives

No response

Related Code

https://stackblitz.com/edit/angular-3cg7gs

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
DwieDimacommented, Sep 22, 2022

With your code sample you’ll lose the scroll position of cats and dogs (they have now the same scroll position). My intention was to preserve the scroll position for each.

  • scroll dogs to Dog 15
  • scoll cat to Cat 6
  • change segment back to dog (is still 15)
  • change segment back to car (is still 6)
0reactions
ionitron-bot[bot]commented, Oct 22, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic 2 ion-refresher with scroll content
I have scroll content with big data list and refresher on the top but when i scroll up the refresher run. I want...
Read more >
how to use ion-refresher inside a custom component
I try to add ion-refresher to a custom component. <ion-refresher (ionRefresh)="refreshList($event)"> <ion-refresher-content> ...
Read more >
ion-refresher background color - You.com | The search engine you ...
So say you want to use $refresher-icon-color: red; in your app you can call this variable in theme/variable.scss which will override the default...
Read more >
Visual Studio Code Crash Course - YouTube
Visual Studio Code (VS Code) is a free code editor made by Microsoft. In this course you will learn how to use this...
Read more >
4 Ways to Listen to Page Scrolling for Dynamic UI in Angular ft ...
For instance, using window scrolling, you can dynamically render ... You'll notice content that is hidden out of view, which appears with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found