From: Michael Poole <mdpoole@troilus.org>
To: Chase Douglas <chase.douglas@canonical.com>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH 2/4] HID: magicmouse: properly account for scroll movement in state
Date: Wed, 09 Jun 2010 21:25:54 -0400 [thread overview]
Message-ID: <8739wvel0d.fsf@troilus.org> (raw)
In-Reply-To: <1275488908-23624-3-git-send-email-chase.douglas@canonical.com> (Chase Douglas's message of "Wed, 2 Jun 2010 10:28:26 -0400")
Chase Douglas writes:
> Before this change, sequential scroll events would take a variable
> amount of movement due to incorrect accounting. This change ensures all
> scroll movements require a deterministic touch movement for an action to
> occur.
>
> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
My apologies for the delay in reviewing this one. I understand now, and
agree it's the right thing to do here.
Acked-by: Michael Poole <mdpoole@troilus.org>
(For the rest of the list, I acked the other three patches in this
series via private email earlier.)
Michael Poole
> ---
> drivers/hid/hid-magicmouse.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c
> index cd70635..171ed0c 100644
> --- a/drivers/hid/hid-magicmouse.c
> +++ b/drivers/hid/hid-magicmouse.c
> @@ -183,7 +183,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);
> }
next prev parent reply other threads:[~2010-06-10 1:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-02 14:28 [PATCH 0/4] HID: magicmouse: improve scrolling Chase Douglas
2010-06-02 14:28 ` [PATCH 1/4] HID: magicmouse: scroll on entire surface, not just middle of mouse Chase Douglas
2010-06-02 14:28 ` [PATCH 2/4] HID: magicmouse: properly account for scroll movement in state Chase Douglas
2010-06-10 1:25 ` Michael Poole [this message]
2010-06-16 15:03 ` Chase Douglas
2010-06-16 15:05 ` Jiri Kosina
2010-06-02 14:28 ` [PATCH 3/4] HID: magicmouse: disable and add module param for scroll acceleration Chase Douglas
2010-06-02 14:28 ` [PATCH 4/4] HID: magicmouse: add param for scroll speed Chase Douglas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8739wvel0d.fsf@troilus.org \
--to=mdpoole@troilus.org \
--cc=chase.douglas@canonical.com \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.