code: public void slideTo()
  	{
  		int l = size().width() - SLIDER_WIDTH;
  		int pos = MathHelper.clamp(mousePosition().x() - SLIDER_WIDTH / 2, 0, l);
  		slideTo((float) pos / l);
  	}
docs: Slides the slider to the specified pixel position.<br>