Comment 8 for bug 1471598

Revision history for this message
Michael Zanetti (mzanetti) wrote :

And here's the code in AP:

/usr/lib/python3/dist-packages/autopilot/input/_uinput.py:

def _get_touch_tool():
    # android uses BTN_TOOL_FINGER, whereas desktop uses BTN_TOUCH. I have
    # no idea why...
    if autopilot.platform.model() == 'Desktop':
        touch_tool = e.BTN_TOUCH
    else:
        touch_tool = e.BTN_TOOL_FINGER
    return touch_tool

I don't know either why android uses a touchpad (BTN_TOOL_FINGER), but looking at this code it seems all our tests use a touchscreen (BTN_TOUCH) when running on desktop already.

I've pushed a fix to: lp:~mzanetti/autopilot/dont-use-touchpad-for-touch