Fix panning

This pull request includes fixes for the issues 1426 and 1493.

The pull request also removes all of the code related to the old whiteboard toolbar that would show and hide it.