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

Unified Diff: public/web/WebInputEvent.h

Issue 690173002: Expose whether a ScrollUpdate is the first such in the sequence (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updates Created 6 years, 1 month 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
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebInputEvent.h
diff --git a/public/web/WebInputEvent.h b/public/web/WebInputEvent.h
index 9f4722a2053b6261cdfb42e59823436c0ac1dd5e..6db55bb14b9957c39528adb9e57ed50cd6cb6dec 100644
--- a/public/web/WebInputEvent.h
+++ b/public/web/WebInputEvent.h
@@ -456,6 +456,14 @@ public:
float deltaY;
float velocityX;
float velocityY;
+
+ // Whether any previous GestureScrollUpdate in the current scroll
+ // sequence was suppressed (e.g., the causal touchmove was
+ // preventDefault'ed). This bit is particularly useful for
+ // determining whether the observed scroll update sequence captures
+ // the entirety of the generative motion.
+ // See comment at the top for why an int is used here instead of a bool.
+ int previousUpdateInSequencePrevented;
} scrollUpdate;
struct {
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698