Skip to content

Commit

Permalink
libappfw: Faster fold panel indicator animation
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 15, 2014
1 parent 870948f commit b5158aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doomsday/libappfw/src/widgets/foldpanelwidget.cpp
Expand Up @@ -25,6 +25,8 @@ namespace de {

using namespace ui;

static TimeDelta const INDICATOR_ANIM_SPAN = 0.7;

DENG2_PIMPL_NOREF(FoldPanelWidget)
{
/**
Expand Down Expand Up @@ -53,7 +55,7 @@ DENG2_PIMPL_NOREF(FoldPanelWidget)
float target = (fold.isOpen()? 0 : 90);
if(target != angle.target())
{
angle.setValue(target, 1);
angle.setValue(target, INDICATOR_ANIM_SPAN);
animating = true;
changed = true;
}
Expand Down

0 comments on commit b5158aa

Please sign in to comment.