diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-05-16 19:17:36 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-19 12:28:30 +0200 |
commit | f3c68034e1da662651e0075643c50f9432cb37b6 (patch) | |
tree | cc79260fdbef823bceb2347362206fc5886747c1 /src/core/render_widget_host_view_qt.h | |
parent | 1e0c8bbe39eab2b1c4646304c5090c593ffba867 (diff) |
Fix fling gestures
InputHandlerProxy::HandleGestureFling assumes that the timestamp on
the fling gesture is in the same system as base::TimeTicks. By giving
it our smaller relative event timestamps (most often taken from a
QElapsedTimer) this ends up here being calculated as a negative time
on the fling animation curve.
Fix the issue by applying a delta at the ui::TouchEvent conversion so
that the resulting GestureFlingStart has a timestamp that can be
reliably interpreted.
Change-Id: I5e149bf64887305119643359495f89be6e0c3ffb
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core/render_widget_host_view_qt.h')
-rw-r--r-- | src/core/render_widget_host_view_qt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/render_widget_host_view_qt.h b/src/core/render_widget_host_view_qt.h index f91beb6d2..ff73b5734 100644 --- a/src/core/render_widget_host_view_qt.h +++ b/src/core/render_widget_host_view_qt.h @@ -220,6 +220,7 @@ private: content::RenderWidgetHostImpl *m_host; scoped_ptr<ui::GestureRecognizer> m_gestureRecognizer; + base::TimeDelta m_eventsToNowDelta; QMap<int, int> m_touchIdMapping; blink::WebTouchEvent m_accumTouchEvent; scoped_ptr<RenderWidgetHostViewQtDelegate> m_delegate; |