[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X: mouse wheel on powerbooks broken, Option modifier

From: David Reitter
Subject: Re: OS X: mouse wheel on powerbooks broken, Option modifier
Date: Fri, 10 Jun 2005 15:17:19 +0100

On 10 Jun 2005, at 11:15, YAMAMOTO Mitsuharu wrote:

Could you try the following patch?

Doesn't work. Same problem. Mouse wheel works, two-finger-scrolling doesn't.

 Also I find the new two finger scrolling on the trackpad doesn't do

I can't test about this one because I don't have a recent PowerBook.
Does anyone know what kind of Carbon event is produced by the two
finger scrolling?

OK, I checked that. It looks like we're not getting kEventMouseWheelMoved, but some (int) 11.
That is not defined in CarbonEvents.h

For two-finger scrolling events (up/down/left/right):

GetEventKind (eventRef): 11
 GetEventClass (eventRef): 1836021107

For mouse wheel scrolling events

GetEventKind (eventRef): 10 (kEventMouseWheelMoved)
 GetEventClass (eventRef): 1836021107

I have no idea why I'm getting this. Other Carbon scroll away happily.

And while you're at it, may I suggest checking kEventParamMouseWheelAxis (only do something if it is kEventMouseWheelAxisY), and also kEventParamWindowPartCode to make sure that the mouse event does not go to the wrong frame. Emacs should scroll whatever window the mouse is over when the wheel is activated. If that's too difficult, at least scroll the first (or selected) window in the frame that the mouse was over...

- D

Attachment: smime.p7s
Description: S/MIME cryptographic signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]