}
}
+ SclUIEventDesc desc;
+ SCLShiftState shift_index = context->get_shift_state();
+ if (context->get_caps_lock_mode()) {
+ shift_index = (shift_index == SCL_SHIFT_STATE_OFF) ? SCL_SHIFT_STATE_ON : SCL_SHIFT_STATE_OFF;
+ }
+ if (coordinate) {
+ desc.key_type = coordinate->key_type;
+ desc.key_value = coordinate->key_value[shift_index][0];
+ desc.key_event = coordinate->key_event[shift_index][0];
+ }
+ desc.event_type = EVENT_TYPE_MOVE;
+ desc.mouse_pressed_point = context->get_cur_pressed_point(touch_id);
+ desc.mouse_current_point = context->get_cur_moving_point(touch_id);
+ desc.mouse_farthest_point = context->get_farthest_move_point(touch_id);
+
+ if (handler && handler->on_event_drag_state_changed(desc) != SCL_EVENT_PASS_ON) {
+ return FALSE;
+ }
+
/* FIXME : Add a condition to skip this code if longkey timer is not active */
/* If the mouse has moved out of threshold value of longkey keypress area, destroy longkey timer */
if (m_long_key_cancel_distance > 0) {
}
}
if (dist > direction_recog_dist) {
- SclUIEventDesc desc;
- SCLShiftState shift_index = context->get_shift_state();
- if (context->get_caps_lock_mode()) {
- shift_index = (shift_index == SCL_SHIFT_STATE_OFF) ? SCL_SHIFT_STATE_ON : SCL_SHIFT_STATE_OFF;
- }
- desc.key_type = coordinate->key_type;
- desc.key_value = coordinate->key_value[shift_index][0];
- desc.key_event = coordinate->key_event[shift_index][0];
- desc.event_type = EVENT_TYPE_MOVE;
- desc.mouse_pressed_point = context->get_cur_pressed_point(touch_id);
- desc.mouse_current_point = context->get_cur_moving_point(touch_id);
- desc.mouse_farthest_point = context->get_farthest_move_point(touch_id);
- desc.key_modifier = key_modifier;
-
- if (handler && handler->on_event_drag_state_changed(desc) && context->get_magnifier_enabled()) {
+ if (context->get_magnifier_enabled()) {
update_magnifier = TRUE;
}
}
}
}
- SclUIEventDesc desc;
- SCLShiftState shift_index = context->get_shift_state();
- if (context->get_caps_lock_mode()) {
- shift_index = (shift_index == SCL_SHIFT_STATE_OFF) ? SCL_SHIFT_STATE_ON : SCL_SHIFT_STATE_OFF;
- }
- desc.key_type = coordinate->key_type;
- desc.key_value = coordinate->key_value[shift_index][0];
- desc.key_event = coordinate->key_event[shift_index][0];
- desc.event_type = EVENT_TYPE_MOVE;
- desc.mouse_pressed_point = context->get_cur_pressed_point(touch_id);
- desc.mouse_current_point = context->get_cur_moving_point(touch_id);
- desc.mouse_farthest_point = context->get_farthest_move_point(touch_id);
- desc.key_modifier = key_modifier;
-
- if (handler && handler->on_event_drag_state_changed(desc) && context->get_magnifier_enabled()) {
+ if (context->get_magnifier_enabled()) {
update_magnifier = TRUE;
}
}