Clear histogram range selection by right mouse click.

This commit is contained in:
Bartosz Taudul 2018-03-04 23:20:35 +01:00
parent f510d8d2e7
commit 3a8c976285

View File

@ -2969,7 +2969,11 @@ void View::DrawFindZone()
ImGui::Text( "Time spent in the right bins: %s", TimeToString( tAfter ) );
ImGui::EndTooltip();
if( ImGui::IsMouseClicked( 0 ) )
if( ImGui::IsMouseClicked( 1 ) )
{
m_findZone.highlight.active = false;
}
else if( ImGui::IsMouseClicked( 0 ) )
{
m_findZone.highlight.active = true;
m_findZone.highlight.start = t0;