File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/vuetify/src/components/VInfiniteScroll Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ export const VInfiniteScroll = genericComponent<VInfiniteScrollSlots>()({
198
198
}
199
199
if ( props . mode !== 'manual' ) {
200
200
nextTick ( ( ) => {
201
+ // Browser takes 2 - 3 animation frames to trigger IntersectionObserver after
202
+ // VInfiniteScrollIntersect leaves the viewpoint. So far I couldn't come up
203
+ // with a better solution than using 3 nested window.requestAnimationFrame. (#17475)
201
204
window . requestAnimationFrame ( ( ) => {
202
205
window . requestAnimationFrame ( ( ) => {
203
206
window . requestAnimationFrame ( ( ) => {
@@ -306,6 +309,7 @@ export const VInfiniteScroll = genericComponent<VInfiniteScrollSlots>()({
306
309
)
307
310
if ( props . mode !== 'manual' ) {
308
311
nextTick ( ( ) => {
312
+ // See #17475
309
313
window . requestAnimationFrame ( ( ) => {
310
314
window . requestAnimationFrame ( ( ) => {
311
315
window . requestAnimationFrame ( ( ) => {
You can’t perform that action at this time.
0 commit comments