Made isPanning view specific

isPanning was being set as a global variable, so setting a non panning keyboard handler would break panning keyboard handlers.
Merge pull request #40 from davbeck/upstream

Made isPanning view specific