fixed panning issues
Merge pull request #73 from jpecht/master

fixed panning issues