+[Version] capi-maps-service_0.6.20
+[Date] 11 June 2018
+[Title] Lower the frequency of drawing map view
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
[Version] capi-maps-service_0.6.19
[Date] 20 Mar 2018
[Title] Fix SVACE & Coverity issues
static Eina_Bool __maps_view_on_idle_cb(void *data)
{
+ return ECORE_CALLBACK_RENEW; // same as EINA_TRUE
+}
+
+static Eina_Bool __maps_view_animator_cb(void *data)
+{
if (!data)
return ECORE_CALLBACK_RENEW;
if (ig && ig->is_transiting()) {
is_transiting |= true;
is_continue |= ig->next_transition_step();
- g_usleep(5*1000);
}
view::inertial_camera *ic = v->inertial_camera;
if (ic && ic->is_transiting()) {
is_transiting |= true;
is_continue |= ic->next_transition_step();
+
+ /* Request to render map with updated position */
__maps_plugin_render_map(v,
ic->get_cur_center(),
ic->get_cur_zoom_factor(),
ic->get_cur_rotation_angle());
_maps_coordinates_copy(ic->get_cur_center(), v->center);
-
_maps_view_on_overlay_update_all(v);
- g_usleep(10*1000);
}
+ /* Send READY event if finished moving map view */
if (is_transiting && !is_continue) {
maps_view_event_data_h ed = _maps_view_create_event_data(MAPS_VIEW_EVENT_READY);
if (ed) {
}
}
- return ECORE_CALLBACK_RENEW; // same as EINA_TRUE
-}
-
-static Eina_Bool __maps_view_animator_cb(void *data)
-{
return ECORE_CALLBACK_RENEW;
}
//LCOV_EXCL_STOP
switch(finger_no) {
case 0: /* Moving the first (single) finger */
+ if (get_trajectory_effective_length(_info._prev_finger_down[0], tp) <= 2) break;
+
_info._prev_finger_down[0] = _info._finger_move[0];
_info._finger_move[0] = tp;
break;
case 1: /* Moving the second finger */
+ if (get_trajectory_effective_length(_info._prev_finger_down[1], tp) <= 2) break;
+
_info._prev_finger_down[1] = _info._finger_move[1];
_info._finger_move[1] = tp;