r4695 - trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui
tick at docs.openmoko.org
tick at docs.openmoko.org
Tue Oct 7 10:58:17 CEST 2008
Author: tick
Date: 2008-10-07 10:58:16 +0200 (Tue, 07 Oct 2008)
New Revision: 4695
Modified:
trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-finger-scroll.c
Log:
[libmokoui2] Let finger scroll faster.
Thanks Trevi?\195?\177o's patch
Modified: trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-finger-scroll.c
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-finger-scroll.c 2008-10-06 11:04:19 UTC (rev 4694)
+++ trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-finger-scroll.c 2008-10-07 08:58:16 UTC (rev 4695)
@@ -253,11 +253,11 @@
priv->ix = priv->x;
priv->iy = priv->y;
/* Don't allow a click if we're still moving fast, where fast is
- * defined as a quarter of our top possible speed.
+ * defined as 1/10 of our top possible speed.
* TODO: Make 'fast' configurable?
*/
- if ((ABS (priv->vel_x) < (priv->vmax * 0.25)) &&
- (ABS (priv->vel_y) < (priv->vmax * 0.25)))
+ if ((ABS (priv->vel_x) < (priv->vmax * 0.10)) &&
+ (ABS (priv->vel_y) < (priv->vmax * 0.10)))
priv->child = moko_finger_scroll_get_topmost (
GTK_BIN (priv->align)->child->window,
event->x, event->y, &x, &y);
@@ -959,7 +959,7 @@
"Maximum scroll velocity",
"Maximum distance the child widget should scroll "
"per 'frame', in pixels.",
- 0, G_MAXDOUBLE, 48,
+ 0, G_MAXDOUBLE, 96,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (
More information about the commitlog
mailing list