Merge branch 'main' into improved-context-menu

This commit is contained in:
SauceyRed 2025-07-30 17:01:44 +02:00
commit ecfa85c0ac
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7
55 changed files with 1030 additions and 297 deletions

View file

@ -9,13 +9,13 @@
<script lang="ts" setup>
import type { ContextMenuInterface, ContextMenuItem } from '~/types/interfaces';
const props = defineProps<{ menuItems: ContextMenuItem[], cursorX: number, cursorY: number }>();
const props = defineProps<{ menuItems: ContextMenuItem[], pointerX: number, pointerY: number }>();
onMounted(() => {
const contextMenu = document.getElementById("context-menu");
if (contextMenu) {
contextMenu.style.left = props.cursorX.toString() + "px";
contextMenu.style.top = props.cursorY.toString() + "px";
contextMenu.style.left = props.pointerX.toString() + "px";
contextMenu.style.top = props.pointerY.toString() + "px";
}
});