static bool ValidateItemDrag(ItemsPerTrack itemsGroup) { //TODO-marker: this is to prevent the drag operation from being canceled when moving only markers if (itemsGroup.clips.Any()) { if (itemsGroup.targetTrack == null) { return(false); } if (itemsGroup.targetTrack.lockedInHierarchy) { return(false); } if (itemsGroup.items.Any(i => !i.IsCompatibleWithTrack(itemsGroup.targetTrack))) { return(false); } return(EditMode.ValidateDrag(itemsGroup)); } return(true); }