feat: improve mouse events

This commit is contained in:
2026-03-11 10:27:17 +01:00
parent c330713fa7
commit deb1be0d66
3 changed files with 29 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ import { cn } from '@/lib/utils'
const MIN_ZOOM = 0.1
const MAX_ZOOM = 2
/** When zoom <= this value, show compact icon view (bottom ~30% of zoom range). */
export const CONTEXTUAL_ZOOM_THRESHOLD = MIN_ZOOM + 0.3 * (MAX_ZOOM - MIN_ZOOM)
export const CONTEXTUAL_ZOOM_THRESHOLD = MIN_ZOOM + 0.1 * (MAX_ZOOM - MIN_ZOOM)
/** Handle id per type for compact view (input, output). */
const COMPACT_HANDLES: Record<string, { input?: string; output?: string }> = {