How to stop shotcut from snapping to different layers like this

It was an improvement based on this suggestion: