Fix panning and console.log errors

This should fix the panning issues and also the ".on" errors that were coming up before.

I'm not sure what to do with things like double click zooming and touches. I've enabled them for now but check out if this behaviour is what you want.