horizontal updates buffer to the right
update buffer works for panning left