Strange jumping while moving an object using grab and MMB

I noticed this jumping when using MMB to constraint the movement in Local transform orientation.
To reproduce it create a cube, rotate it, grab it and use MMB to move and constraint the cube in some direction. After releasing the MMB the position of the cube changes.
move_constraint_jumps
This doesn’t happen when rotating or scaling. (or moving in Global l transform orientation)

https://developer.blender.org/maniphest/task/edit/form/1

Thanks, I reported it as a bug.