Enter to touch mode by down or scroll event from any type of a device. am: 718c4da0cd am: aa18efa1d7
Change-Id: Iafdc05869c7488951c7652b1e9f753390e9cc08f
This commit is contained in:
@@ -5699,9 +5699,9 @@ public final class ViewRootImpl implements ViewParent,
|
||||
mTranslator.translateEventInScreenToAppWindow(event);
|
||||
}
|
||||
|
||||
// Enter touch mode if event is coming from a touch screen device.
|
||||
// Enter touch mode on down or scroll from any type of a device.
|
||||
final int action = event.getAction();
|
||||
if (event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)) {
|
||||
if (action == MotionEvent.ACTION_DOWN || action == MotionEvent.ACTION_SCROLL) {
|
||||
ensureTouchMode(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user