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

Unified Diff: third_party/WebKit/Source/web/WebInputEventConversion.cpp

Issue 2227803003: Plumb phase/momentum for WheelEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Non-Mac compile. Created 4 years, 4 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/web/WebInputEventConversion.cpp
diff --git a/third_party/WebKit/Source/web/WebInputEventConversion.cpp b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
index 9f2171f04668f27c8b551213098566004fbd4632..d8879e6df856cf711312a8855c1bd06715f2556e 100644
--- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp
+++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
@@ -236,8 +236,6 @@ PlatformWheelEventBuilder::PlatformWheelEventBuilder(Widget* widget, const WebMo
#if OS(MACOSX)
m_phase = static_cast<PlatformWheelEventPhase>(e.phase);
m_momentumPhase = static_cast<PlatformWheelEventPhase>(e.momentumPhase);
- m_canRubberbandLeft = e.canRubberbandLeft;
- m_canRubberbandRight = e.canRubberbandRight;
#endif
}
@@ -641,6 +639,10 @@ WebMouseWheelEventBuilder::WebMouseWheelEventBuilder(const Widget* widget, const
railsMode = static_cast<RailsMode>(event.getRailsMode());
hasPreciseScrollingDeltas = event.hasPreciseScrollingDeltas();
dispatchType = event.cancelable() ? WebInputEvent::Blocking : WebInputEvent::EventNonBlocking;
+#if OS(MACOSX)
+ phase = static_cast<Phase>(event.phase());
+ momentumPhase = static_cast<Phase>(event.momentumPhase());
+#endif
}
WebKeyboardEventBuilder::WebKeyboardEventBuilder(const KeyboardEvent& event)

Powered by Google App Engine
This is Rietveld 408576698