Fixed error in panning.
Merge pull request #40 from mitchmindtree/master

Fixed error in panning correction.