A moves with the mouse/touch but cannot be out of parent container.

The shadow of B moves with the mouse/touch but cannot be out of parent container.

C moves with the mouse/touch.

A B C