Mesh sticks to rigify controls when moving on a locked axis
This is the default behaviour of IK limbs in rigify.
There are different things that you can do to change it. The easiest one is to turn IK stretch off