uchY = center.y - rect.top

            const x = touchX / scale.value - posX.value
            const y = touchY / scale.value - posY.value

            const newScale = Math.min(Math.max(scale.value + delta, 0.5), 3)
            if (newScale === scale.value) return

            posX.value = touchX / newScale - x
            posY.value = touchY / newScale - y
            scale.value = newScale
          }
        }

        // Handle touch end
        const handleTouchEnd = (e) => {
          if (e.touches.