diff options
author | Foysal Ahamed <foysal@blueskyweb.xyz> | 2023-09-18 23:34:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-18 14:34:12 -0700 |
commit | 3c4899b3c4ae55285559215023a25e365c9f4e30 (patch) | |
tree | d8a1433959b4a4ffadc85924c2abb7ff872bc852 /src/view/shell/index.web.tsx | |
parent | 255beb0c1f74fe3a72a8069f30395b7774442f88 (diff) | |
download | voidsky-3c4899b3c4ae55285559215023a25e365c9f4e30.tar.zst |
:bug: Handle middle mouse click on feed list items (#1469)
* :bug: Handle middle mouse click on feed list items * :recycle: Refactor the event listener and turn it into a dedicated hook for web * :broom: Cleanup unnecessary Link changes * Fix import * Create native version of useAuxClick --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/shell/index.web.tsx')
-rw-r--r-- | src/view/shell/index.web.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx index 124341917..67f988844 100644 --- a/src/view/shell/index.web.tsx +++ b/src/view/shell/index.web.tsx @@ -16,11 +16,13 @@ import {useWebMediaQueries} from '../../lib/hooks/useWebMediaQueries' import {BottomBarWeb} from './bottom-bar/BottomBarWeb' import {useNavigation} from '@react-navigation/native' import {NavigationProp} from 'lib/routes/types' +import {useAuxClick} from 'lib/hooks/useAuxClick' const ShellInner = observer(function ShellInnerImpl() { const store = useStores() const {isDesktop, isMobile} = useWebMediaQueries() const navigator = useNavigation<NavigationProp>() + useAuxClick() useEffect(() => { navigator.addListener('state', () => { |