| Submitter | Chase Douglas |
|---|---|
| Date | June 24, 2010, 3:37 p.m. |
| Message ID | <1277393850-5902-4-git-send-email-chase.douglas@canonical.com> |
| Download | mbox | patch |
| Permalink | /patch/56803/ |
| State | Accepted |
| Delegated to: | Leann Ogasawara |
| Headers | show |
Comments
Patch
diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c index 4c4a79c..f44aaf2 100644 --- a/drivers/hid/hid-magicmouse.c +++ b/drivers/hid/hid-magicmouse.c @@ -189,7 +189,8 @@ static void magicmouse_emit_touch(struct magicmouse_sc *msc, int raw_id, u8 *tda case TOUCH_STATE_DRAG: step = step / accel_profile[msc->scroll_accel]; if (step != 0) { - msc->touches[id].scroll_y = y; + msc->touches[id].scroll_y -= + step * accel_profile[msc->scroll_accel]; msc->scroll_jiffies = now; input_report_rel(input, REL_WHEEL, step); }