aboutsummaryrefslogtreecommitdiff
path: root/hildon/hildon-pannable-area.c
diff options
context:
space:
mode:
Diffstat (limited to 'hildon/hildon-pannable-area.c')
-rw-r--r--hildon/hildon-pannable-area.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hildon/hildon-pannable-area.c b/hildon/hildon-pannable-area.c
index 2b8943d..c6d7038 100644
--- a/hildon/hildon-pannable-area.c
+++ b/hildon/hildon-pannable-area.c
@@ -2502,7 +2502,7 @@ hildon_pannable_area_handle_move (HildonPannableArea *area,
(priv->vmax - priv->vmin)) + priv->vmin);
priv->vel_y = ((*y > 0) ? 1 : -1) *
(((ABS (*y) /
- (gdouble) gtk_widget_get_allocated_width (GTK_WIDGET (area))) *
+ (gdouble) gtk_widget_get_allocated_height (GTK_WIDGET (area))) *
(priv->vmax - priv->vmin)) + priv->vmin);
break;
case HILDON_PANNABLE_AREA_MODE_AUTO: