Title: [98717] trunk/Source/WebKit2
Revision
98717
Author
[email protected]
Date
2011-10-28 05:18:03 -0700 (Fri, 28 Oct 2011)

Log Message

[Qt] Make the kinetic engine use the same curve and constants as on the N9
https://bugs.webkit.org/show_bug.cgi?id=71102

Reviewed by Simon Hausmann.

Now that we are using the QScroller for kinetic scrolling and page
interaction, we need to make sure it uses the same curve (exponential)
and the same values as the MeeGo Touch physics engine used on the N9.

* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::reset):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (98716 => 98717)


--- trunk/Source/WebKit2/ChangeLog	2011-10-28 11:47:47 UTC (rev 98716)
+++ trunk/Source/WebKit2/ChangeLog	2011-10-28 12:18:03 UTC (rev 98717)
@@ -1,3 +1,17 @@
+2011-10-28  Kenneth Rohde Christiansen  <[email protected]>
+
+        [Qt] Make the kinetic engine use the same curve and constants as on the N9
+        https://bugs.webkit.org/show_bug.cgi?id=71102
+
+        Reviewed by Simon Hausmann.
+
+        Now that we are using the QScroller for kinetic scrolling and page
+        interaction, we need to make sure it uses the same curve (exponential)
+        and the same values as the MeeGo Touch physics engine used on the N9.
+
+        * UIProcess/qt/QtViewportInteractionEngine.cpp:
+        (WebKit::QtViewportInteractionEngine::reset):
+
 2011-10-28  Carlos Garcia Campos  <[email protected]>
 
         [GTK] Add webkit_web_view_get_uri() to WebKit2 GTK+ API

Modified: trunk/Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp (98716 => 98717)


--- trunk/Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp	2011-10-28 11:47:47 UTC (rev 98716)
+++ trunk/Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp	2011-10-28 12:18:03 UTC (rev 98717)
@@ -268,8 +268,9 @@
 
     // Set some default QScroller constrains to mimic the physics engine of the N9 browser.
     properties.setScrollMetric(QScrollerProperties::AxisLockThreshold, 0.66);
-    properties.setScrollMetric(QScrollerProperties::DecelerationFactor, 0.20);
-    properties.setScrollMetric(QScrollerProperties::MaximumVelocity, 0.2);
+    properties.setScrollMetric(QScrollerProperties::ScrollingCurve, QEasingCurve(QEasingCurve::OutExpo));
+    properties.setScrollMetric(QScrollerProperties::DecelerationFactor, 0.05);
+    properties.setScrollMetric(QScrollerProperties::MaximumVelocity, 0.635);
     properties.setScrollMetric(QScrollerProperties::OvershootDragResistanceFactor, 0.33);
     properties.setScrollMetric(QScrollerProperties::OvershootScrollDistanceFactor, 0.33);
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to