diff --git a/src/components/picker-view/wheel.tsx b/src/components/picker-view/wheel.tsx index 80af4689470..b32c6572db9 100644 --- a/src/components/picker-view/wheel.tsx +++ b/src/components/picker-view/wheel.tsx @@ -197,13 +197,14 @@ export const Wheel = memo( handleWheel(state) }, { + target: props.mouseWheel ? rootRef : undefined, axis: 'y', from: () => [0, y.get()], preventDefault: true, - target: props.mouseWheel ? rootRef : undefined, - eventOptions: supportsPassive - ? { passive: false } - : (false as unknown as AddEventListenerOptions), + eventOptions: + (supportsPassive as unknown as AddEventListenerOptions) && { + passive: false, + }, } ) @@ -302,9 +303,8 @@ export const Wheel = memo( if (prev.onSelect !== next.onSelect) return false if (prev.renderLabel !== next.renderLabel) return false if (prev.mouseWheel !== next.mouseWheel) return false - if (!isEqual(prev.column, next.column)) { - return false - } + if (!isEqual(prev.column, next.column)) return false + return true } )