Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix sensitivity while scrolling (#3190)

authored by

Eric Bailey and committed by
GitHub
5c771050 9f2f7f22

+9
+4
src/components/Menu/index.web.tsx
··· 119 119 }, 120 120 props: { 121 121 ...props, 122 + // disable on web, use `onPress` 123 + onPointerDown: () => false, 124 + onPress: () => 125 + control.isOpen ? control.close() : control.open(), 122 126 onFocus: onFocus, 123 127 onBlur: onBlur, 124 128 onMouseEnter,
+5
src/components/Menu/types.ts
··· 23 23 ['aria-haspopup']?: boolean 24 24 ['aria-expanded']?: AccessibilityProps['aria-expanded'] 25 25 onKeyDown: (e: React.KeyboardEvent) => void 26 + /** 27 + * Radix provides this, but we override on web to use `onPress` instead, 28 + * which is less sensitive while scrolling. 29 + */ 26 30 onPointerDown: PressableProps['onPointerDown'] 27 31 } 28 32 export type TriggerProps = { ··· 69 73 pressed: false 70 74 } 71 75 props: RadixPassThroughTriggerProps & { 76 + onPress: () => void 72 77 onFocus: () => void 73 78 onBlur: () => void 74 79 onMouseEnter: () => void