Ubuntu – Google Chrome touchscreen – right-click gets stuck

14.04google-chrometouchscreen

I'm having some problems with Google Chrome and my touchscreen in Ubuntu 14.04.

Basic touchscreen usage works fine, but if I double-tap on the touchscreen (the gesture for a right-click, as far as I can tell), then every time I touch the screen after that, it acts as if I've right-clicked.

This problem appears to be unique to Chrome; xterm, for example, acts normally.

Any suggestions?

Is there a way to get touchscreen events to act identically to mouse events? For example, I found where I can disable touch events (using chrome://flags/#touch-events), but that completely disables tap for left click.

Is anyone successfully using a touchscreen with Google Chrome in Ubuntu 14.04? (I'm working on this for a kiosk-style setup, so I'm using Ubuntu Server and nodm instead of Unity or another desktop shell, and my hardware's a little unusual also.)

Best Answer

There are at least one possible solution that worked for me. :)

That problem could be solved for me with Chrome's --touch-devices command line parameter.

Determine X's input device id in a console by

xinput list

leading to

google-chrome --touch-devices=10

on my system.

To make Chrome always use this CLI flag, see:

How to set CLI flags for Google Chrome?

Chrome + Touchscreen + Unity (14.04)

Related Question