Lines Matching refs:SWIPE
12 * Helper class for disambiguating whether to treat a two-finger gesture as a swipe or a pinch.
20 SWIPE,
54 /** Returns whether a swipe is in progress. */
56 return mState == State.SWIPE;
67 * swipe or a pinch, further 2-finger motion-events will be ignored. When a different event is
123 // soon that SWIPE never gets triggered.
126 // cannot be equal to the touch-slop, because in that case, SWIPE would rarely be detected.
129 // SWIPE to be detected. Doubling the radius is an arbitrary choice that works well.
153 // Both fingers have moved, so determine SWIPE/PINCH status. If the fingers have moved in
154 // the same direction, this is a SWIPE, otherwise it's a PINCH. This can be measured by
159 mState = (scalarProduct > 0) ? State.SWIPE : State.PINCH;