Remove inconsistent return
Remove dev console logs
Update canvas size on resize event
Center pan to prevent inconsistent view position (fix:#2 fix:#3)