Improve panning functionality
Remove unused getEventPoint function
Remove debugging code :P