mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-16 14:18:27 +00:00
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:
committed by
Christian Helmuth
parent
3f8dfa346c
commit
c38c80fd43
@ -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)
|
||||
|
Reference in New Issue
Block a user