feat: improve mouse events
This commit is contained in:
@@ -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 }> = {
|
||||
|
||||
Reference in New Issue
Block a user