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)

SVN revision: 26678
This commit is contained in:
rephorm 2006-10-18 03:00:35 +00:00 committed by rephorm
parent cfa5c0cad4
commit fff9407dc8
1 changed files with 6 additions and 2 deletions

View File

@ -219,15 +219,19 @@ _edje_dragable_pos_set(Edje *ed, Edje_Real_Part *ep, double x, double y)
* 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;
}