Enlightenment CVS committal Author : rephorm Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/lib Modified Files: edje_calc.c Log Message: its possible for _pos_set() to be called after the final mouse move, but before the mouse up event when dragging a dragable. in this case, the calc immediately after would be incorrect. this fixes the bug noticable in winter sliders being jumpy. (the default theme did not exhibit the bug because the pulsing glow anim cause subsequent recalcs to immediately correct things) =================================================================== RCS file: /cvs/e/e17/libs/edje/src/lib/edje_calc.c,v retrieving revision 1.92 retrieving revision 1.93 diff -u -3 -r1.92 -r1.93 --- edje_calc.c 9 Oct 2006 06:01:13 -0000 1.92 +++ edje_calc.c 18 Oct 2006 03:00:35 -0000 1.93 @@ -219,15 +219,19 @@ * value we would set foo to, because it would depend on the * size of the dragable... */ - if (ep->drag.x != x) + if (ep->drag.x != x || ep->drag.tmp.x) { ep->drag.x = x; + ep->drag.tmp.x = 0; + ep->drag.need_reset = 0; ed->dirty = 1; } - if (ep->drag.y != y) + if (ep->drag.y != y || ep->drag.tmp.y) { ep->drag.y = y; + ep->drag.tmp.y = 0; + ep->drag.need_reset = 0; ed->dirty = 1; } ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs