summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-17 09:33:05 -0400
committerCedric BAIL <cedric.bail@free.fr>2019-07-17 10:54:46 -0700
commite6393393ccafe59d4e434a78c79952601d93956a (patch)
tree6065d06489c2e54a7a9fcee66416d7456864cf02
parentd5da991bc586980e9e0a3d0cac78b026a6b611d1 (diff)
efl/scroll manager: stop clearing animators on every wheel event
if scrolling is supposed to continue then just reuse the existing animator callback and avoid emitting a scroll,start/stop event pair for every new input event Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9340
-rw-r--r--src/lib/elementary/efl_ui_scroll_manager.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_scroll_manager.c b/src/lib/elementary/efl_ui_scroll_manager.c
index a6bf0cda22..dd924ed0b8 100644
--- a/src/lib/elementary/efl_ui_scroll_manager.c
+++ b/src/lib/elementary/efl_ui_scroll_manager.c
@@ -1555,10 +1555,11 @@ _scroll_manager_scrollto_y_animator_del(Efl_Ui_Scroll_Manager_Data *sd)
1555static void 1555static void
1556_scroll_manager_scrollto_animator_add(Efl_Ui_Scroll_Manager_Data *sd, Evas_Coord sx, Evas_Coord sy, Evas_Coord x, Evas_Coord y, double tx, double ty, InterpType interp) 1556_scroll_manager_scrollto_animator_add(Efl_Ui_Scroll_Manager_Data *sd, Evas_Coord sx, Evas_Coord sy, Evas_Coord x, Evas_Coord y, double tx, double ty, InterpType interp)
1557{ 1557{
1558 _scroll_manager_scrollto_animator_del(sd); 1558 if (!sd->pan_obj || sd->freeze)
1559 1559 {
1560 if (!sd->pan_obj) return; 1560 _scroll_manager_scrollto_animator_del(sd);
1561 if (sd->freeze) return; 1561 return;
1562 }
1562 _scroll_manager_scrollto_x_animator_add(sd, sx, x, tx, interp); 1563 _scroll_manager_scrollto_x_animator_add(sd, sx, x, tx, interp);
1563 _scroll_manager_scrollto_y_animator_add(sd, sy, y, ty, interp); 1564 _scroll_manager_scrollto_y_animator_add(sd, sy, y, ty, interp);
1564} 1565}