Adding panning.
Fixed minor bugs in interactivity.