Ecore_Wayland: Update to changed direction

Positive and negative have been switched so we no longer need to invert
ourselves.

Patch by: Rob Bradford <rob@linux.intel.com>



SVN revision: 78136
This commit is contained in:
Rob Bradford 2012-10-17 21:50:31 +00:00 committed by Eduardo de Barros Lima
parent 5fb31dfbd9
commit acbf60bbb2
1 changed files with 2 additions and 2 deletions

View File

@ -1180,12 +1180,12 @@ _ecore_wl_input_mouse_wheel_send(Ecore_Wl_Input *input, unsigned int axis, int v
if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL) if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL)
{ {
ev->direction = 0; ev->direction = 0;
ev->z = -value; ev->z = value;
} }
else if (axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL) else if (axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL)
{ {
ev->direction = 1; ev->direction = 1;
ev->z = -value; ev->z = value;
} }
if (input->grab) if (input->grab)