[Qt-interest] Mac: Two finger swipe and mouse wheel event

Christian Lackas delta at lackas.net
Fri Feb 12 10:19:02 CET 2010


Hi Everybody,

I use mouse wheel events to allow a Mac user to scroll through images by
using the two finger swipe on the touch pad (or an actual mouse wheel).
The wheel of an attached mouse does still works as expected, however,
the two finger swipe on the touch pad seems to have changed in behavior.

When using the mouse wheel, I get values which are typically multiples
of 8*15=120, while for the two finger swipe I now get multiples of 1.
How can I handle this transparently? Would like to avoid a line such as
this:
    if (abs(delta) < 120) delta *= 120

I believe the behavior changed when I switched from Qt 4.5.3 to 4.6.1.
Is this maybe related to the new QGesture infrastructure?
I also upgraded from Leopard to Snow Leopard recently, so this could
also be the cause.

How can I get the old behavior (two finger swipe on touch pad equals
mouse wheel) back?

Thanks,
 Christian

-- 
http://www.invicro.com/



More information about the Qt-interest-old mailing list