diff options
author | Hailey <me@haileyok.com> | 2024-05-23 08:45:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 16:45:24 +0100 |
commit | d0516143423afaf6fe9c6db71ee67e5aef99b013 (patch) | |
tree | ec2ed99a6e9fbed68c9f7107213931dc483a67b1 /src/view/com/util/List.web.tsx | |
parent | 2c6c906934a0b567e4e63025d1f69d534776b79d (diff) | |
download | voidsky-d0516143423afaf6fe9c6db71ee67e5aef99b013.tar.zst |
implement a safari hack for ime (#4186)
remove debug logs use a better hack implement a safari hack extract `isSafari` and `isFirefox` to a global variable
Diffstat (limited to 'src/view/com/util/List.web.tsx')
-rw-r--r-- | src/view/com/util/List.web.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/view/com/util/List.web.tsx b/src/view/com/util/List.web.tsx index 7f192686d..9d8ddedaa 100644 --- a/src/view/com/util/List.web.tsx +++ b/src/view/com/util/List.web.tsx @@ -5,6 +5,7 @@ import {ReanimatedScrollEvent} from 'react-native-reanimated/lib/typescript/rean import {batchedUpdates} from '#/lib/batchedUpdates' import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' import {useScrollHandlers} from '#/lib/ScrollContext' +import {isFirefox, isSafari} from 'lib/browser' import {usePalette} from 'lib/hooks/usePalette' import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' import {addStyle} from 'lib/styles' @@ -503,8 +504,6 @@ export const List = memo(React.forwardRef(ListImpl)) as <ItemT>( ) => React.ReactElement // https://stackoverflow.com/questions/7944460/detect-safari-browser -const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) -const isFirefox = /firefox|fxios/i.test(navigator.userAgent) const styles = StyleSheet.create({ sideBorders: { |