diff --git a/frontend/src/lib/components/AnnotationLayer.svelte b/frontend/src/lib/components/AnnotationLayer.svelte index 34ca26d2..3d79b61b 100644 --- a/frontend/src/lib/components/AnnotationLayer.svelte +++ b/frontend/src/lib/components/AnnotationLayer.svelte @@ -93,7 +93,7 @@ function handlePointerUp(event: PointerEvent) { let hoveredId = $state(null); const containerStyle = $derived( - `position: absolute; top: 0; left: 0; width: 100%; height: 100%;${canAnnotate ? ' cursor: crosshair;' : ''}` + `position: absolute; top: 0; left: 0; width: 100%; height: 100%;${canAnnotate ? ' cursor: crosshair; touch-action: none;' : ''}` ); @@ -113,8 +113,8 @@ const containerStyle = $derived( aria-label="Kommentare anzeigen" onclick={() => onAnnotationClick?.(annotation.id)} onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') onAnnotationClick?.(annotation.id); }} - onmouseenter={() => (hoveredId = annotation.id)} - onmouseleave={() => (hoveredId = null)} + onpointerenter={() => (hoveredId = annotation.id)} + onpointerleave={() => (hoveredId = null)} style=" position: absolute; left: {annotation.x * 100}%;