Yesterday, 06:31 PM
If you select the layer in the Layers list (in other words the layer is the target of operations), then moving the layer moves the mask with it. If the mask is selected then the move tool moves the mask while the layer stays in place.

