Fix/10

Remove infinite horizontal scroll and add a bounding box to the pan area. Also, remove some trailing whitespace (couldn't resist).