File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,11 @@ export default function useTouchMove(
124
124
}
125
125
126
126
document . addEventListener ( 'touchmove' , onProxyTouchMove , { passive : false } ) ;
127
- document . addEventListener ( 'touchend' , onProxyTouchEnd , { passive : false } ) ;
127
+ document . addEventListener ( 'touchend' , onProxyTouchEnd , { passive : true } ) ;
128
128
129
129
// No need to clean up since element removed
130
- ref . current . addEventListener ( 'touchstart' , onProxyTouchStart , { passive : false } ) ;
131
- ref . current . addEventListener ( 'wheel' , onProxyWheel ) ;
130
+ ref . current . addEventListener ( 'touchstart' , onProxyTouchStart , { passive : true } ) ;
131
+ ref . current . addEventListener ( 'wheel' , onProxyWheel , { passive : false } ) ;
132
132
133
133
return ( ) => {
134
134
document . removeEventListener ( 'touchmove' , onProxyTouchMove ) ;
You can’t perform that action at this time.
0 commit comments