 touch points
        let lastTouchDistance = 0
        // Record mouse position
        let lastMouseX = 0
        let lastMouseY = 0

        // Calculate distance between two touch points
        const getDistance = (touches) => {
          return Math.hypot(
            touches[0].clientX - touches[1].clientX,
            touches[0].clientY - touches[1].clientY
          )
        }

        // Calculate center point of two touch positions
        const getTouchCenter = (touches) => {
          return {