Fix bug with panning by Control.