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

Unified Diff: sky/engine/core/events/GestureEvent.cpp

Issue 880473003: sky-scrollable should use a reasonable fling curve (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Now with heights Created 5 years, 11 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: sky/engine/core/events/GestureEvent.cpp
diff --git a/sky/engine/core/events/GestureEvent.cpp b/sky/engine/core/events/GestureEvent.cpp
index 8bf0d55f90fbf6ed752e2f97f2b7220649464b6e..cd56f26e1359dff13efc7e52acaea7ad56ec6bf3 100644
--- a/sky/engine/core/events/GestureEvent.cpp
+++ b/sky/engine/core/events/GestureEvent.cpp
@@ -74,6 +74,8 @@ GestureEvent::GestureEvent(const WebGestureEvent& event)
, m_velocityX(0)
, m_velocityY(0)
{
+ m_timeStamp = event.timeStampMS;
+
if (event.type == WebInputEvent::GestureFlingStart) {
m_velocityX = event.data.flingStart.velocityX;
m_velocityY = event.data.flingStart.velocityY;

Powered by Google App Engine
This is Rietveld 408576698