diff options
author | Peter Osterlund <petero2@telia.com> | 2004-02-29 20:21:42 +0100 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:01:51 +0200 |
commit | bc76e183f5b7d9d3f01744c22232212558c4067c (patch) | |
tree | fb037b2198cdf0d1806d977aebf6d8aa0bd988a2 /synaptics.c | |
parent | 86017b6f84805e4853a76221d8dbcefe4069ae0c (diff) |
Fixed bug in change ec6c36c16d5f7093f194595607bc9d2e1d114f5f.
Diffstat (limited to 'synaptics.c')
-rw-r--r-- | synaptics.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synaptics.c b/synaptics.c index bc5280e..b291c5e 100644 --- a/synaptics.c +++ b/synaptics.c @@ -1141,14 +1141,14 @@ HandleState(LocalDevicePtr local, struct SynapticsHwState* hw) if (priv->drag || priv->draglock) { int edge_speed = para->edge_motion_speed; if (edge & RIGHT_EDGE) { - dx += clamp(edge_speed - dx, 0, i); + dx += clamp(edge_speed - dx, 0, edge_speed); } else if (edge & LEFT_EDGE) { - dx -= clamp(edge_speed + dx, 0, i); + dx -= clamp(edge_speed + dx, 0, edge_speed); } if (edge & TOP_EDGE) { - dy -= clamp(edge_speed + dy, 0, i); + dy -= clamp(edge_speed + dy, 0, edge_speed); } else if (edge & BOTTOM_EDGE) { - dy += clamp(edge_speed - dy, 0, i); + dy += clamp(edge_speed - dy, 0, edge_speed); } } |