aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/elm_interface_scrollable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_interface_scrollable.c')
-rw-r--r--src/lib/elementary/elm_interface_scrollable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_interface_scrollable.c b/src/lib/elementary/elm_interface_scrollable.c
index 32c2b3d97f..a92a503ed4 100644
--- a/src/lib/elementary/elm_interface_scrollable.c
+++ b/src/lib/elementary/elm_interface_scrollable.c
@@ -2356,6 +2356,7 @@ _elm_scroll_scroll_to_y(Elm_Scrollable_Smart_Interface_Data *sid,
}
t = ecore_loop_time_get();
elm_obj_pan_pos_get(sid->pan_obj, &px, &py);
+ if (py == pos_y) return;
sid->scrollto.y.start = py;
sid->scrollto.y.end = pos_y;
sid->scrollto.y.t_start = t;
@@ -2399,6 +2400,7 @@ _elm_scroll_scroll_to_x(Elm_Scrollable_Smart_Interface_Data *sid,
}
t = ecore_loop_time_get();
elm_obj_pan_pos_get(sid->pan_obj, &px, &py);
+ if (px == pos_x) return;
sid->scrollto.x.start = px;
sid->scrollto.x.end = pos_x;
sid->scrollto.x.t_start = t;