| Index: third_party/WebKit/Source/core/events/TouchEvent.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/TouchEvent.cpp b/third_party/WebKit/Source/core/events/TouchEvent.cpp
|
| index a3c0b95b90a5284e26ee854ea2066ab11d34e9a0..b35d957b50b3996bc55193ee228e156b029cd868 100644
|
| --- a/third_party/WebKit/Source/core/events/TouchEvent.cpp
|
| +++ b/third_party/WebKit/Source/core/events/TouchEvent.cpp
|
| @@ -204,7 +204,7 @@ void TouchEvent::preventDefault()
|
| // A common developer error is to wait too long before attempting to stop
|
| // scrolling by consuming a touchmove event. Generate a warning if this
|
| // event is uncancelable.
|
| - if (!cancelable() && view() && view()->isLocalDOMWindow() && view()->frame()) {
|
| + if (!cancelable() && handlingPassive() == PassiveMode::NotPassive && view() && view()->isLocalDOMWindow() && view()->frame()) {
|
| toLocalDOMWindow(view())->frame()->console().addMessage(ConsoleMessage::create(JSMessageSource, WarningMessageLevel,
|
| "Ignored attempt to cancel a " + type() + " event with cancelable=false, for example because scrolling is in progress and cannot be interrupted."));
|
| }
|
|
|