Skip to content

Commit

Permalink
Fix for calling non-cancellable scroll events
Browse files Browse the repository at this point in the history
  • Loading branch information
tu4mo committed Jun 13, 2023
1 parent a465818 commit a60f9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-select/src/internal/useScrollCapture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef } from 'react';
import { supportsPassiveEvents } from '../utils';

const cancelScroll = (event: WheelEvent | TouchEvent) => {
event.preventDefault();
if (event.cancelable) event.preventDefault();
event.stopPropagation();
};

Expand Down

0 comments on commit a60f9fa

Please sign in to comment.