Editor view: panning and others.

Ok, now it's clean. This is retake of pull request #362 , which gone wrong due to my lack of git skills.