Remove inconsistent return
Remove dev console logs
Update canvas size on resize event
Center pan to prevent inconsistent view position (fix:#2 fix:#3)
Merge pull request #4 from nopnop/fixPanPosition

Fix pan point. Fixes #2. Fixes #3.