Fixed bug where panning did not work when using a storyboard.