Cancel long-press operation if the gesture is scrolling

This CL adds the code to cancel the long-press operation which shows
inline setting when the user stats the scrollingo

Previously that was done in Android (ag/4340201) but it didn't work
for vertical scroll since the scroll is handled on Chrome side. With
this CL, scroll detection is done on Chrome side and the code handles
correctly with vertical scrolls in addition to horizontal ones.

Bug: b/111100376
Bug: 858938
Test: Manual (inline setting does't open during vertical scroll)
Change-Id: I84407b331dc320e6acd3a776938104ad018d46a3
Commit-Queue: Yoshiki Iguchi <>
Reviewed-by: Eliot Courtney <>
Reviewed-by: Luis Hector Chavez <>
Reviewed-by: Greg Kerr <>
Cr-Commit-Position: refs/heads/master@{#574512}
10 files changed