fix dynamic resizing, logistic panning