Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: third_party/WebKit/Source/core/frame/DOMTimer.cpp

Issue 1799253002: Stricter user gestures for touch - measure and warn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/DOMTimer.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMTimer.cpp b/third_party/WebKit/Source/core/frame/DOMTimer.cpp
index 2b825894b8ecada2efd5d94fe852985c67e3694a..db87eb1539ead64cea3357cfafc0bf6a158c9d1b 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimer.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMTimer.cpp
@@ -46,7 +46,7 @@ static const double minimumInterval = 0.004;
static inline bool shouldForwardUserGesture(int interval, int nestingLevel)
{
- return UserGestureIndicator::processingUserGesture()
+ return UserGestureIndicator::processingUserGestureUntracked()
&& interval <= maxIntervalForUserGestureForwarding
&& nestingLevel == 1; // Gestures should not be forwarded to nested timers.
}

Powered by Google App Engine
This is Rietveld 408576698