Use math round instead of parseInt in getValueByPosition function
Change position of control only by render method, not by dragging