File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ export default function useTouchMove(
92
92
}
93
93
94
94
// >>> Wheel event
95
- const lastMixedWheelRef = useRef ( 0 ) ;
96
95
const lastWheelTimestampRef = useRef ( 0 ) ;
97
96
const lastWheelPreventRef = useRef ( false ) ;
98
97
const lastWheelDirectionRef = useRef < 'x' | 'y' > ( ) ;
@@ -115,9 +114,8 @@ export default function useTouchMove(
115
114
116
115
// Optimize mac touch scroll
117
116
const now = Date . now ( ) ;
118
- const absMixed = Math . abs ( mixed ) ;
119
117
120
- if ( now - lastWheelTimestampRef . current > 100 || absMixed - lastMixedWheelRef . current > 10 ) {
118
+ if ( now - lastWheelTimestampRef . current > 100 ) {
121
119
lastWheelPreventRef . current = false ;
122
120
}
123
121
@@ -127,7 +125,6 @@ export default function useTouchMove(
127
125
}
128
126
129
127
lastWheelTimestampRef . current = now ;
130
- lastMixedWheelRef . current = absMixed ;
131
128
}
132
129
133
130
// ========================= Effect =========================
You can’t perform that action at this time.
0 commit comments