diff --git a/src/components/picker-view/wheel.tsx b/src/components/picker-view/wheel.tsx index b9656cb61b..6c8e958746 100644 --- a/src/components/picker-view/wheel.tsx +++ b/src/components/picker-view/wheel.tsx @@ -201,10 +201,7 @@ export const Wheel = memo( axis: 'y', from: () => [0, y.get()], preventDefault: true, - eventOptions: - (supportsPassive as unknown as AddEventListenerOptions) && { - passive: false, - }, + eventOptions: supportsPassive ? { passive: false } : undefined, } ) diff --git a/src/components/pull-to-refresh/pull-to-refresh.tsx b/src/components/pull-to-refresh/pull-to-refresh.tsx index fc63f1d209..713f0a6533 100644 --- a/src/components/pull-to-refresh/pull-to-refresh.tsx +++ b/src/components/pull-to-refresh/pull-to-refresh.tsx @@ -161,9 +161,7 @@ export const PullToRefresh: FC = p => { axis: 'y', target: elementRef, enabled: !props.disabled, - eventOptions: supportsPassive - ? { passive: false } - : (false as unknown as AddEventListenerOptions), + eventOptions: supportsPassive ? { passive: false } : undefined, } )