visibility_type auto_visibility;
int bind_win_id;
screen_connector_screen_type_e screen_type;
+ bool flick;
+ int prev_y;
void *data;
};
evas_object_geometry_get(obj, &x, &y, &w, &h);
LOGD("mouse down: %d %d", ev->canvas.x - x, ev->canvas.y - y);
+ toolkit_evas_h->flick = false;
+ toolkit_evas_h->prev_y = ev->canvas.y - y;
if (desc == NULL)
desc = "";
int w;
int h;
struct tizen_remote_surface *surface;
+ int delta_y;
evas_object_geometry_get(obj, &x, &y, &w, &h);
return;
}
+ if (toolkit_evas_h->flick) {
+ LOGD("flick event");
+ return;
+ }
+
+ delta_y = ev->cur.canvas.y - y - toolkit_evas_h->prev_y;
+ if (delta_y < 0)
+ delta_y *= -1;
+
+ if (delta_y > 10) {
+ toolkit_evas_h->flick = true;
+ return;
+ }
+
+ toolkit_evas_h->prev_y = ev->cur.canvas.y - y;
tizen_remote_surface_transfer_mouse_event(surface,
TIZEN_REMOTE_SURFACE_EVENT_TYPE_MOUSE_MOVE,
0,