Chromium Code Reviews| Index: content/browser/renderer_host/input/synthetic_pointer_action.cc |
| diff --git a/content/browser/renderer_host/input/synthetic_pointer_action.cc b/content/browser/renderer_host/input/synthetic_pointer_action.cc |
| index 76eb44387ba4f7ad8922eaad92524a6a83e87be8..a701ce51f0281ea0165a6d4c803d16f93e797dc3 100644 |
| --- a/content/browser/renderer_host/input/synthetic_pointer_action.cc |
| +++ b/content/browser/renderer_host/input/synthetic_pointer_action.cc |
| @@ -77,10 +77,15 @@ bool SyntheticPointerAction::UserInputCheck( |
| return false; |
| } |
| - if ((params.pointer_action_type() == |
| - SyntheticPointerActionParams::PointerActionType::MOVE || |
| - params.pointer_action_type() == |
| - SyntheticPointerActionParams::PointerActionType::RELEASE) && |
| + if (synthetic_pointer_->SourceType() == SyntheticGestureParams::TOUCH_INPUT && |
|
tdresser
2016/08/04 13:46:01
This should also hold true for mouse, shouldn't it
lanwei
2016/09/23 15:13:42
For mouse, the move can be happened without a pres
|
| + params.pointer_action_type() == |
| + SyntheticPointerActionParams::PointerActionType::MOVE && |
| + GetPointIndex(params.index()) < 0) { |
| + return false; |
| + } |
| + |
| + if (params.pointer_action_type() == |
| + SyntheticPointerActionParams::PointerActionType::RELEASE && |
| GetPointIndex(params.index()) < 0) { |
| return false; |
| } |