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:
parent
5fb31dfbd9
commit
acbf60bbb2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue