Skip to content

Commit

Permalink
TButton: also animate pressing when handling cmDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
magiblot committed Dec 26, 2024
1 parent 2af3d11 commit 4c75d1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/tvision/tbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ void TButton::handleEvent( TEvent& event )
case cmDefault:
if( amDefault && !(state & sfDisabled) )
{
press();
drawState( True );
if( animationTimer == 0 )
animationTimer = setTimer( animationDurationMs );
clearEvent(event);
}
break;
Expand Down

0 comments on commit 4c75d1f

Please sign in to comment.