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 (toolkit_evas_h->screen_type == SCREEN_CONNECTOR_SCREEN_TYPE_WATCH)
+ toolkit_evas_h->prev_y = ev->canvas.y - y;
if (desc == NULL)
desc = "";
int h;
struct tizen_remote_surface *surface;
int delta_y;
- Evas_Device_Class cls;
evas_object_geometry_get(obj, &x, &y, &w, &h);
return;
}
- cls = evas_device_class_get(ev->dev);
- if (cls != EVAS_DEVICE_CLASS_MOUSE && toolkit_evas_h->flick) {
- LOGD("flick event");
- return;
- }
+ if (toolkit_evas_h->screen_type == SCREEN_CONNECTOR_SCREEN_TYPE_WATCH) {
+ 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;
+ 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;
+ if (delta_y > 10) {
+ toolkit_evas_h->flick = true;
+ return;
+ }
+ toolkit_evas_h->prev_y = ev->cur.canvas.y - y;
}
- 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,
wl_fixed_from_double(ev->radius_y),
wl_fixed_from_double(ev->pressure),
wl_fixed_from_double(ev->angle),
- cls,
+ evas_device_class_get(ev->dev),
evas_device_subclass_get(ev->dev),
desc,
ev->timestamp);