Prevent Snapping
Try using this Photoshop keyboard shortcut when a layer inadvertently snaps to an object. Hold Ctrl (Windows) or Command (macOS) after you start to drag to prevent Photoshop from snapping the layer to other objects.
For more tips and tutorials, subscribe to Photoshop Training Channel on YouTube!