menu_view: midway re-targeting of geometry motion

This patch fixes the corner case where an animated geometry changes its
destination mid-way while an animation is already in progress. The
'_trigger_animated_geometry' method used to back out early in this case,
which was intended as an optimization.

Fixes #3296
This commit is contained in:
Norman Feske
2019-04-18 13:17:53 +02:00
committed by Christian Helmuth
parent 3f8dfa346c
commit c38c80fd43
2 changed files with 11 additions and 3 deletions

View File

@ -163,9 +163,6 @@ class Menu_view::Widget : List_model<Widget>::Element
void _trigger_geometry_animation()
{
if (_animated_geometry.animated())
return;
bool const changed = (_geometry.p1() != _animated_geometry.p1()
|| _geometry.p2() != _animated_geometry.p2());
if (changed)