@@ -57,28 +57,6 @@ type AutosizeOptionsRequired = Required<GridAutosizeOptions>;
57
57
58
58
type ResizeDirection = keyof typeof GridColumnHeaderSeparatorSides ;
59
59
60
- // TODO: remove support for Safari < 13.
61
- // https://caniuse.com/#search=touch-action
62
- //
63
- // Safari, on iOS, supports touch action since v13.
64
- // Over 80% of the iOS phones are compatible
65
- // in August 2020.
66
- // Utilizing the CSS.supports method to check if touch-action is supported.
67
- // Since CSS.supports is supported on all but Edge@12 and IE and touch-action
68
- // is supported on both Edge@12 and IE if CSS.supports is not available that means that
69
- // touch-action will be supported
70
- let cachedSupportsTouchActionNone = false ;
71
- function doesSupportTouchActionNone ( ) : boolean {
72
- if ( cachedSupportsTouchActionNone === undefined ) {
73
- if ( typeof CSS !== 'undefined' && typeof CSS . supports === 'function' ) {
74
- cachedSupportsTouchActionNone = CSS . supports ( 'touch-action' , 'none' ) ;
75
- } else {
76
- cachedSupportsTouchActionNone = true ;
77
- }
78
- }
79
- return cachedSupportsTouchActionNone ;
80
- }
81
-
82
60
function trackFinger ( event : any , currentTouchId : number | undefined ) : CursorCoordinates | boolean {
83
61
if ( currentTouchId !== undefined && event . changedTouches ) {
84
62
for ( let i = 0 ; i < event . changedTouches . length ; i += 1 ) {
@@ -593,10 +571,6 @@ export const useGridColumnResize = (
593
571
if ( ! cellSeparator ) {
594
572
return ;
595
573
}
596
- // If touch-action: none; is not supported we need to prevent the scroll manually.
597
- if ( ! doesSupportTouchActionNone ( ) ) {
598
- event . preventDefault ( ) ;
599
- }
600
574
601
575
const touch = event . changedTouches [ 0 ] ;
602
576
if ( touch != null ) {
@@ -812,7 +786,7 @@ export const useGridColumnResize = (
812
786
( ) => apiRef . current . columnHeadersContainerRef ?. current ,
813
787
'touchstart' ,
814
788
handleTouchStart ,
815
- { passive : doesSupportTouchActionNone ( ) } ,
789
+ { passive : true } ,
816
790
) ;
817
791
818
792
useGridApiMethod (
0 commit comments