Based on a patch by Matthias Derer, this adds the distance moved to a translation (grab) transform (both 3D and 2D, although the 2D transform displays the normalised distance only).