Currently I am using CDK virtual scroll in the DOM, but when scrolling fast there is glitch happening in the DOM , so I am planning to implement the Pull to refresh method, so how to implement this pull to refresh or any other solution for this glitch issue
How to implement the pull to refresh in CDK virtual scrolled angular application
155 views Asked by Vinu Ram At
2
There are 2 answers
0
Rens Jaspers
On
If you see a glitch when scrolling fast with CdkVirtualScroll, it usually means that the itemSize on your cdk-virtual-scroll-viewport is not correct.
If it's off by a few pixels it won't matter that much if you scroll slowly, but if you scroll quickly then CdkVirtualScroll will run into trouble because the difference between itemHeight and the actual item height becomes too large for it to calculate correctly which items to show.
Go to your browser dev tools and measure the exact height of your items. The height should be fixed.
Let's assume you measured an item height of 50px. Then, in your template:
<cdk-virtual-scroll-viewport itemSize="50">
Related Questions in ANGULAR
- Firebase link existing user to anonymous account?
- It doesnt always show all the books on my homepage
- Google adsense ads.txt status cannot be not found
- When I navigate to the URL'http://localhost:4200/', it redirects me back
- Ionic Angular Standalone ion-icon are not showing at all
- How to make Angular understand that view child is of a specific type, not a general ElementRef?
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Ngrx props<>() method in createAction()
- How to animate rotation of an image inside input control?
- Detecting click inside and outside of the listening component in Angular
- Angular - type guard not narrowing types
- In node_modules file i am getting Angular genric error while using fontawesome in angular12
- Angular 16 sending null values to API
- GoogleCloud Error: Not Found The requested URL was not found on this server
Related Questions in SMOOTH-SCROLLING
- Snap scroll to div in horizontal scroll via lenis smooth scroll and framer motion
- Trouble Integrating Locomotive Scroll and GSAP ScrollTrigger
- Smooth scrolling is causing extra pages to scroll unexpectedly
- smooth scroll on sticky menu with sfixed sidebar
- Lenis smoothscroll: does not scroll to bottom after drop down animation of an element on Firefox
- scroll-behavior: smooth; does not work for the first time in 428px resolution below
- How to solve this scrolling problem in Javascript?
- Nextjs Smooth Scrolling
- Parallax effect using Animated not working in React Native ScrollView
- How to trigger wow.js animation when using smooth-scrollbar?
- Infinite Scrolling in selenium python
- Javascript smooth scroll with scroll-margin-top creates a jump at the end
- When the length of a page changes, is there a way to scroll up or down smoothly instead of jumping?
- How to add Lenis Scroll on a specific div with VueJS
- Smooth scroll doesn't work with Lenis when link with id clicked
Related Questions in PULL-TO-REFRESH
- PullRefreshIndicator circle always displaying on jetpack compose
- Preventing Unintended Refresh Behavior on Non-scrollable Content in a TMS WEB Core App?
- React Native/Expo Web: Input Focus Triggers Pull-to-Refresh (iOS Safari)
- How to create Listview with Load more and Pull to refresh in MAUI?
- Pull to refresh without packages and able to custom loader
- I can't find Modifier.pullRefresh in jetpack compose
- MAUI: Listview inside Refreshview streaches fully and scrolls entire UI
- What causes "'RefreshIndicator' isn't a function" error?
- How remove Bouncing effect in flutter when scrolling page
- No Refresh indicator with CarouselSlider
- SmartRefresher's multiple refresh controllers error in TabContainer
- How to correctly use pull to refresh in Jetpack Compose?
- AutomaticKeepAliveClientMixin Causing Multiple Pull-to-Refresh Calls in TabBarView's each tab"
- How to implement the pull to refresh in CDK virtual scrolled angular application
- Reveal header on pull and pin until scroll + pull to refresh
Related Questions in ANGULAR-CDK-VIRTUAL-SCROLL
- cdk virtual scrolling with sticky header html table angular
- Fast scroll with cdk-virtual-scroll-viewport shown empty spaces, any solution with Angular15+?
- mat-tab on clicking first time after cdk-virual scroll showing empty data, navigating back from 1st tab to 2nd tab works
- Custom scrollToIndex for mixed height items in a virtual scroll viewport
- Angular cdk-virtual-scroll-viewport not working
- How to track the scroll event of individual cdk-virtual-scroll-viewport
- How to fit non-list items into virtual scroll using Angular Material CDK
- Need to Call API when the user scrolls to the end of the list to load next batch of data using Angular CDK Virtual scroll
- Angular Virtual Scroll Jumps around
- Angular virtual scroll with sticky column and header
- Angular virtual scroll: prepend new items when new data streams in with Microsoft SignalR
- CdkVirtualScrollViewport header is not fixed
- Use multiple cdk-virtual-scroll-viewport in the same page
- Cdk virtual scroll taking time rendering items after scrolling
- How to mock 'CdkVirtualScrollViewport' for infinite scrolling in Angular?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
ionic supports this behaviour with its
ion-refreshercomponenthttps://ionicframework.com/docs/api/refresher#usage-with-virtual-scroll
You could either use this component or look into their repo as to how they implement it