= x - cursorWidth;
                    let closestIndex = -1;
                    let closestDistance = Infinity;
                    for (let i = 0; i < menuMesh.urlMesh.urlState.measures.length; i++) {
                      const urlMeasure = menuMesh.urlMesh.urlState.measures[i];
                      const distance = Math.abs(urlMeasure - textX);
                      if (distance < closestDistance) {
                        closestIndex = i;
                        closestDistance = distance;
         