The animator should be removed when mouse is down and the _smart_event_mouse_move function occurs.

SVN revision: 67318
This commit is contained in:
Jaehwan Kim 2012-01-19 07:11:41 +00:00
parent fb3f515001
commit a091b950f3
1 changed files with 20 additions and 19 deletions

View File

@ -2273,6 +2273,13 @@ _smart_event_mouse_move(void *data, Evas *e, Evas_Object *obj __UNUSED__, void *
sd->down.hold_parent = EINA_TRUE;
evas_post_event_callback_push(e, _smart_event_post_move, sd);
// FIXME: respect elm_widget_scroll_hold_get of parent container
if (_elm_config->thumbscroll_enable)
{
if (sd->down.now)
{
int dodir = 0;
if (sd->scrollto.x.animator)
{
Evas_Coord px;
@ -2292,12 +2299,6 @@ _smart_event_mouse_move(void *data, Evas *e, Evas_Object *obj __UNUSED__, void *
sd->down.sy = py;
sd->down.y = sd->down.history[0].y;
}
// FIXME: respect elm_widget_scroll_hold_get of parent container
if (_elm_config->thumbscroll_enable)
{
if (sd->down.now)
{
int dodir = 0;
#ifdef SCROLLDBG
printf("::: %i %i\n", ev->cur.canvas.x, ev->cur.canvas.y);