about summary refs log tree commit diff
path: root/src/lib/hooks/useAuxClick.ts
diff options
context:
space:
mode:
authorFoysal Ahamed <foysal@blueskyweb.xyz>2023-09-18 23:34:12 +0200
committerGitHub <noreply@github.com>2023-09-18 14:34:12 -0700
commit3c4899b3c4ae55285559215023a25e365c9f4e30 (patch)
treed8a1433959b4a4ffadc85924c2abb7ff872bc852 /src/lib/hooks/useAuxClick.ts
parent255beb0c1f74fe3a72a8069f30395b7774442f88 (diff)
downloadvoidsky-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/lib/hooks/useAuxClick.ts')
-rw-r--r--src/lib/hooks/useAuxClick.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/hooks/useAuxClick.ts b/src/lib/hooks/useAuxClick.ts
new file mode 100644
index 000000000..ab6fd4365
--- /dev/null
+++ b/src/lib/hooks/useAuxClick.ts
@@ -0,0 +1,2 @@
+// does nothing in native
+export const useAuxClick = () => {}