2 handled slider widgit

cant quite figure this out. I can get mouse position in viewpoint but cant get this to to set button position.