// We currently don't allow user code to modify RangeSrcItem by writing to BeginIO's version, but that would be an easy change here.
if(ms->BeginIO.RangeSrcReset||(ms->RangeSrcPassedBy==false&&ms->BeginIO.RangeSrcItem!=ImGuiSelectionUserData_Invalid))// Can't read storage->RangeSrcItem here! (see tests)
if(ms->BeginIO.RangeSrcReset||(ms->RangeSrcPassedBy==false&&ms->BeginIO.RangeSrcItem!=ImGuiSelectionUserData_Invalid))// Can't read storage->RangeSrcItem here -> we want the state at begining of the scope (see tests for easy failure)
{
IMGUI_DEBUG_LOG_SELECTION("[selection] EndMultiSelect: Reset RangeSrcItem.\n");// Will set be to NavId.