Elm glayer: Fixed bug in non-continues mode.
authorAharon Hillel <a.hillel@partner.samsung.com>
Tue, 8 Nov 2011 13:09:14 +0000 (13:09 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 8 Nov 2011 13:09:14 +0000 (13:09 +0000)
Line and Momentum START was effected by mouse-over fix.

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>
SVN revision: 64950

src/lib/elm_gesture_layer.c

index 90a043c4e52ed72ab09b9397052610113b7c6372..55bd73deeb06384a4b743d0b1f75991ceb295ebd 100644 (file)
@@ -1716,7 +1716,7 @@ _momentum_test(Evas_Object *obj, Pointer_Event *pe,
    Gesture_Info *gesture = wd->gesture[g_type];
    if (!gesture ) return;
 
-   if (!eina_list_count(wd->touched))
+   if ((wd->glayer_continues_enable) && (!eina_list_count(wd->touched)))
      return; /* Got move on mouse-over move */
 
    Momentum_Type *st = gesture->data;
@@ -1967,7 +1967,7 @@ _n_line_test(Evas_Object *obj, Pointer_Event *pe, void *event_info,
    Gesture_Info *gesture = wd->gesture[g_type];
    if (!gesture ) return;
 
-   if (!eina_list_count(wd->touched))
+   if ((wd->glayer_continues_enable) && (!eina_list_count(wd->touched)))
      return; /* Got move on mouse-over move */
 
    Line_Type *st = gesture->data;