Can someone help me???

Hi I'm on the windows beta and am trying to get a bar to slide when I hold it Down and drag it, I want it to stay fixed on the X axis so it only moves left and right when dragged and stay at a fixed hight eg from bottom of screen
Thanks
Thanks
Answers