| Index: content/browser/renderer_host/input/touch_emulator.cc
|
| diff --git a/content/browser/renderer_host/input/touch_emulator.cc b/content/browser/renderer_host/input/touch_emulator.cc
|
| index 8592bd2031c3f9dd0a0dadde0f8ef4717f91cb96..a7010e339fffd4088cd808163d3e0836e55863ff 100644
|
| --- a/content/browser/renderer_host/input/touch_emulator.cc
|
| +++ b/content/browser/renderer_host/input/touch_emulator.cc
|
| @@ -331,7 +331,7 @@ void TouchEmulator::OnGestureEvent(const ui::GestureEventData& gesture) {
|
| }
|
|
|
| void TouchEmulator::CancelTouch() {
|
| - if (!emulated_stream_active_sequence_count_)
|
| + if (!emulated_stream_active_sequence_count_ || !enabled())
|
| return;
|
|
|
| WebTouchEventTraits::ResetTypeAndTouchStates(
|
|
|