preventDefault()
          }
          isDragging.value = false
        }

        // Handle mouse wheel (zoom)
        const handleWheel = (e) => {
          const preview = document.getElementById('preview')
          if (!preview.contains(e.target)) {
            return
          }

          e.preventDefault()

          const rect = preview.getBoundingClientRect()
          const mouseX = e.clientX - rect.left
          const mouseY = e.clientY - rect.top

          // Calculate relative coordinates ba