summaryrefslogtreecommitdiff
path: root/src/synaptics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/synaptics.c')
-rw-r--r--src/synaptics.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index 4784157..df95b12 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2512,6 +2512,12 @@ post_scroll_events(const InputInfoPtr pInfo)
if (valuator_mask_num_valuators(priv->scroll_events_mask))
xf86PostMotionEventM(pInfo->dev, FALSE, priv->scroll_events_mask);
#else
+ SynapticsParameters *para = &priv->synpara;
+
+ /* smooth scrolling uses the dist as increment */
+ priv->scroll.delta_y /= para->scroll_dist_vert;
+ priv->scroll.delta_x /= para->scroll_dist_horiz;
+
while (priv->scroll.delta_y <= -1.0)
{
post_button_click(pInfo, 4);