panning virtual buffer in ruby