File tree 1 file changed +6
-4
lines changed
libs/template/experimental/virtual-scrolling/src/lib 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ declare const ngDevMode: boolean;
29
29
30
30
const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ! ! ngDevMode ;
31
31
32
+ /** Options used to bind passive event listeners. */
33
+ const passiveEventListenerOptions = { passive : true } ;
34
+
32
35
/**
33
36
* @Component RxVirtualScrollViewport
34
37
*
@@ -184,9 +187,7 @@ export class RxVirtualScrollViewportComponent
184
187
this . scrollContainer ( ) ,
185
188
'scroll' ,
186
189
this . scrollListener ,
187
- {
188
- passive : true ,
189
- }
190
+ passiveEventListenerOptions
190
191
) ;
191
192
}
192
193
@@ -208,7 +209,8 @@ export class RxVirtualScrollViewportComponent
208
209
getZoneUnPatchedApi ( this . scrollContainer ( ) , 'removeEventListener' ) . call (
209
210
this . scrollContainer ( ) ,
210
211
'scroll' ,
211
- this . scrollListener
212
+ this . scrollListener ,
213
+ passiveEventListenerOptions
212
214
) ;
213
215
this . destroy$ . next ( ) ;
214
216
this . scrollStrategy . detach ( ) ;
You can’t perform that action at this time.
0 commit comments