        event.stopPropagation()
      }
    })

    document.getElementById('test-a11y-role-slider-container').addEventListener('pointerdown', function (event) {
      isRoleMoving = true

      event.preventDefault()
      event.stopPropagation()
    })

    document.getElementById('test-a11y-role-slider-container').addEventListener('click', function (event) {
      const { offset, value } = getMousePosition(event)

      event.currentTarget.setAttribute('aria-valuenow', value)
      event.currentTarget.se