| Index: services/native_viewport/platform_viewport_android.cc
|
| diff --git a/services/native_viewport/platform_viewport_android.cc b/services/native_viewport/platform_viewport_android.cc
|
| index f3db992290fe04a8f438cd39c27074226c4577a1..8cd264e4bc5ff5bc8082f1f788825b4a8a41d674 100644
|
| --- a/services/native_viewport/platform_viewport_android.cc
|
| +++ b/services/native_viewport/platform_viewport_android.cc
|
| @@ -110,7 +110,8 @@ bool PlatformViewportAndroid::TouchEvent(JNIEnv* env, jobject obj,
|
| base::TimeDelta::FromMilliseconds(time_ms));
|
| // TODO(beng): handle multiple touch-points.
|
| delegate_->OnEvent(&event);
|
| - if (action == ui::ET_TOUCH_RELEASED || action == ui::ET_TOUCH_CANCELLED)
|
| + if (event.type() == ui::ET_TOUCH_RELEASED ||
|
| + event.type() == ui::ET_TOUCH_CANCELLED)
|
| id_generator_.ReleaseNumber(pointer_id);
|
|
|
| return true;
|
|
|