Fix non-marking touches causing undo events.