Set scrollbar when moving