Small fixes
This commit is contained in:
parent
83ac9b1f36
commit
b1a9eb859e
|
|
@ -152,8 +152,8 @@ onMounted(() => {
|
||||||
};
|
};
|
||||||
const touchmove = (e: TouchEvent) => {
|
const touchmove = (e: TouchEvent) => {
|
||||||
const pos = center(e.touches);
|
const pos = center(e.touches);
|
||||||
dispX.value -= (lastX - pos.x);
|
dispX.value -= (lastX - pos.x) / zoom.value;
|
||||||
dispY.value -= (lastY - pos.y);
|
dispY.value -= (lastY - pos.y) / zoom.value;
|
||||||
lastX = pos.x;
|
lastX = pos.x;
|
||||||
lastY = pos.y;
|
lastY = pos.y;
|
||||||
|
|
||||||
|
|
@ -255,9 +255,22 @@ function resizeNode(e: MouseEvent, x: number, y: number)
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #default>
|
<template #default>
|
||||||
|
<div class="flex flex-row justify-between px-4">
|
||||||
|
<div class="flex flex-col gap-2">
|
||||||
|
<ProseH4>Ordinateur</ProseH4>
|
||||||
<div class="flex items-center"><Icon icon="ph:mouse-left-click-fill" class="w-6 h-6"/>: Selectionner</div>
|
<div class="flex items-center"><Icon icon="ph:mouse-left-click-fill" class="w-6 h-6"/>: Selectionner</div>
|
||||||
|
<div class="flex items-center"><Icon icon="ph:mouse-left-click-fill" class="w-6 h-6"/><Icon icon="ph:mouse-left-click-fill" class="w-6 h-6"/>: Modifier</div>
|
||||||
<div class="flex items-center"><Icon icon="ph:mouse-middle-click-fill" class="w-6 h-6"/>: Déplacer</div>
|
<div class="flex items-center"><Icon icon="ph:mouse-middle-click-fill" class="w-6 h-6"/>: Déplacer</div>
|
||||||
<div class="flex items-center"><Icon icon="ph:mouse-right-click-fill" class="w-6 h-6"/>: Menu</div>
|
<div class="flex items-center"><Icon icon="ph:mouse-right-click-fill" class="w-6 h-6"/>: Menu</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col gap-2">
|
||||||
|
<ProseH4>Mobile</ProseH4>
|
||||||
|
<div class="flex items-center"><Icon icon="ph:hand-tap" class="w-6 h-6"/>: Selectionner</div>
|
||||||
|
<div class="flex items-center"><Icon icon="ph:hand-tap" class="w-6 h-6"/><Icon icon="ph:hand-tap" class="w-6 h-6"/>: Modifier</div>
|
||||||
|
<div class="flex items-center"><Icon icon="mdi:gesture-pinch" class="w-6 h-6"/>: Zoomer</div>
|
||||||
|
<div class="flex items-center"><Icon icon="ph:hand-tap" class="w-6 h-6"/> maintenu: Menu</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue