Lock a range (some ranges) to a specific track

Is there a built-in way to lock a range to a specific track, so that it doesn’t slip accidentally into other tracks when draging it right/left by hand?