fixed #142. Undo event is now only registered if lattice graph element
is moved and not if only viewport is panned.