Skip to content

Commit

Permalink
Fixed issue which allowed an item marked as NOT transferable to actua…
Browse files Browse the repository at this point in the history
…lly be transferred between lists

Resolves #382
  • Loading branch information
SimonDarksideJ committed Apr 23, 2022
1 parent a041f18 commit 10e5273
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void OnDrag(PointerEventData eventData)

//If nothing found or the list is not dropable, put the fake element outside
if (_currentReorderableListRaycasted == null || _currentReorderableListRaycasted.IsDropable == false
// || (_oldReorderableListRaycasted != _reorderableList && !IsTransferable)
|| (_oldReorderableListRaycasted != _reorderableList && !IsTransferable)
|| ((_fakeElement.parent == _currentReorderableListRaycasted.Content
? _currentReorderableListRaycasted.Content.childCount - 1
: _currentReorderableListRaycasted.Content.childCount) >= _currentReorderableListRaycasted.maxItems && !_currentReorderableListRaycasted.IsDisplacable)
Expand Down

0 comments on commit 10e5273

Please sign in to comment.