Dear developers.
When gravity set on els_pan, user events are processing improperly.
Any touch event move pan to wrong position.
It's due to accumulate px, py.
So I fixed it.
Thanks
Index: elementary/src/lib/els_pan.c
===================================================================
--- elementary/src/lib/els_pan.c (리비전 65883)
+++ elementary/src/lib/els_pan.c (작업 사본)
@@ -195,16 +195,19 @@
{
if (sd->gravity_x || sd->gravity_y)
{
+ if ((!sd->px) && (!sd->py))
+ {
+ sd->px = sd->delta_posx*sd->gravity_x;
+ sd->py = sd->delta_posy*sd->gravity_y;
+ }
sd->delta_posx += sd->child_w - sd->prev_cw;
sd->prev_cw = sd->child_w;
sd->delta_posy += sd->child_h - sd->prev_ch;
sd->prev_ch = sd->child_h;
- evas_object_move(sd->child_obj,
- sd->x - sd->px - (sd->delta_posx*sd->gravity_x),
- sd->y - sd->py - (sd->delta_posy*sd->gravity_y));
- sd->px += sd->delta_posx*sd->gravity_x;
- sd->py += sd->delta_posy*sd->gravity_y;
+ evas_object_move(sd->child_obj, sd->x - sd->px, sd->y - sd->py);
+ sd->px = sd->delta_posx*sd->gravity_x;
+ sd->py = sd->delta_posy*sd->gravity_y;
}
else
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel