fix corner case where dragged item highlights red due to non-move
This commit is contained in:
@@ -509,6 +509,7 @@ namespace UIFixes
|
|||||||
{
|
{
|
||||||
// Moving item to the same place, cool, not a problem
|
// Moving item to the same place, cool, not a problem
|
||||||
__result = true;
|
__result = true;
|
||||||
|
operation = default;
|
||||||
if (showHighlights && selectedItemContext.Item.Parent is GClass2769 gridAddress)
|
if (showHighlights && selectedItemContext.Item.Parent is GClass2769 gridAddress)
|
||||||
{
|
{
|
||||||
ShowPreview(__instance, selectedItemContext, gridAddress, R.GridView.ValidMoveColor);
|
ShowPreview(__instance, selectedItemContext, gridAddress, R.GridView.ValidMoveColor);
|
||||||
@@ -535,6 +536,11 @@ namespace UIFixes
|
|||||||
{
|
{
|
||||||
HidePreviews();
|
HidePreviews();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// In success, we want operation to be the first (last in stack), to represent the item being dragged
|
||||||
|
operation = operations.Last();
|
||||||
|
}
|
||||||
|
|
||||||
// Didn't simulate so now undo
|
// Didn't simulate so now undo
|
||||||
while (operations.Any())
|
while (operations.Any())
|
||||||
|
Reference in New Issue
Block a user