Fix off-by-one error in panning.
Merge pull request #54 from lucasb-eyer/master

Fix off-by-one error in panning.