better rendering when panning