Mark activity when animating message marker.

This commit is contained in:
Bartosz Taudul 2022-09-28 01:13:40 +02:00
parent 64dbaf9d84
commit 37442a7671
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -128,6 +128,7 @@ void View::DrawThreadMessages( const ThreadData& thread, double pxns, int offset
if( !isMsgHovered )
{
animOff = -fabs( sin( s_time * 8 ) ) * th;
m_wasActive = true;
}
}
}
@ -142,6 +143,7 @@ void View::DrawThreadMessages( const ThreadData& thread, double pxns, int offset
if( !isMsgHovered )
{
animOff = -fabs( sin( s_time * 8 ) ) * th;
m_wasActive = true;
}
}
draw->AddTriangle( wpos + ImVec2( px - (ty - to) * 0.5, animOff + offset + to ), wpos + ImVec2( px + (ty - to) * 0.5, animOff + offset + to ), wpos + ImVec2( px, animOff + offset + to + th ), color, 2.0f );