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

Unified Diff: public/web/WebInputEvent.h

Issue 1187633003: Add "targetViewport" to ScrollBegin and FlingStart (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: comments Created 5 years, 6 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
« no previous file with comments | « no previous file | 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 6945f4ce63aaace89dd1b63b538312ac1c13e04e..b5d0a8bc6052b1f56fabe2537e52a02a86eb92b8 100644
--- a/public/web/WebInputEvent.h
+++ b/public/web/WebInputEvent.h
@@ -469,6 +469,9 @@ public:
// May be redundant with deltaX/deltaY in the first scrollUpdate.
float deltaXHint;
float deltaYHint;
+ // If true, this event will skip hit testing to find a scroll
+ // target and instead just scroll the viewport.
+ bool targetViewport;
} scrollBegin;
struct {
@@ -489,6 +492,9 @@ public:
struct {
float velocityX;
float velocityY;
+ // If true, this event will skip hit testing to find a scroll
+ // target and instead just scroll the viewport.
+ bool targetViewport;
} flingStart;
struct {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698