mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-14 08:41:21 +10:00
feat(context menu): prevent default context menu and emit event on elements
This commit is contained in:
@ -17,6 +17,11 @@ export function setupHooks() {
|
|||||||
listen("auth/finished", (event) => {
|
listen("auth/finished", (event) => {
|
||||||
router.push("/store");
|
router.push("/store");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.addEventListener("contextmenu", (event) => {
|
||||||
|
event.target?.dispatchEvent(new Event("contextmenu"));
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function initialNavigation(state: Ref<AppState>) {
|
export function initialNavigation(state: Ref<AppState>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user