scroll,anim,finished: void; [[Called when scroll animation finishes.]]
scroll,drag,started: void; [[Called when scroll drag starts.]]
scroll,drag,finished: void; [[Called when scroll drag finishes.]]
+ //TIZEN_ONLY(20191121): add new event for destination information.
+ scroll,destination,finalized @beta: Eina.Position2D; [[Called when scroll destination is finalized.]]
+ //
}
}
_scroll_manager_scrollto_animator_add(sd, cur.x, cur.y, x, y,
_elm_config->bring_in_scroll_friction,
_elm_config->bring_in_scroll_friction, INTERP_DECEL);
+
+ //TIZEN_ONLY(20191121): add new event for destination information.
+ Eina_Position2D dst = EINA_POSITION2D(x, y);
+ efl_event_callback_call(sd->parent, EFL_UI_EVENT_SCROLL_DESTINATION_FINALIZED, &dst);
+ //
}
}
double t, at;
Evas_Coord dx, dy, ax, ay, vel;
signed char sdx, sdy;
+ //TIZEN_ONLY(20191121): add new event for destination information.
+ Eina_Position2D dst = efl_ui_pan_position_get(sd->pan_obj);
+ //
t = ev->timestamp / 1000.0;
(vel > _elm_config->thumbscroll_momentum_threshold))
{
_scroll_manager_momentum_animator_add(sd, -sdx*dx/at, -sdy*dy/at);
+
+ //TIZEN_ONLY(20191121): add new event for destination information.
+ return;
+ //
}
else if (!sd->bouncemex && !sd->bouncemey)
{
_efl_ui_scroll_manager_scroll_stop(sd);
}
}
+ //TIZEN_ONLY(20191121): add new event for destination information.
+ efl_event_callback_call(sd->parent, EFL_UI_EVENT_SCROLL_DESTINATION_FINALIZED, &dst);
+ //
}
static void
double dur = 0.0;
signed char sdx = 0, sdy = 0;
Evas_Coord dstx = 0, dsty = 0;
+ //TIZEN_ONLY(20191121): add new event for destination information.
+ Eina_Position2D dst = {0, 0};
+ //
/*
if (_scroll_manager_scrollto_animator_del(sd))
_scroll_manager_scrollto_animator_add(sd, cur.x, cur.y, dstx, dsty,
dur, dur, INTERP_DECEL);
+
+ //TIZEN_ONLY(20191121): add new event for destination information.
+ dst = EINA_POSITION2D(dstx, dsty);
+ efl_event_callback_call(sd->parent, EFL_UI_EVENT_SCROLL_DESTINATION_FINALIZED, &dst);
+ //
}
static void