[Lazarus] MouseWheel scroll delta detection
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Jun 5 10:38:06 CEST 2008
A follow-up from my previous post.
So far, the only mention of this mouse wheel acceleration is in a
article listed below:
http://adomas.org/javascript-mouse-wheel/
Under Mac OS X the mouse wheel delta goes from -+0.1 to -+30.0
In XLib and Win32 API's, I could only get a delta of -+1 (no range). :-(
Is the underlying windowing systems of XLib and Win32 to dumb to have
a delta range? If so, what a pitty!
Regards,
- Graeme -
2008/6/5 Graeme Geldenhuys <graemeg.lists at gmail.com>:
> Hi,
>
> In Mac OS X, if your roll the mouse wheel quickly, you scroll a lot of
> text (almost like PgUp/PgDn). If you roll the mouse wheel slowly, it
> scrolls a few pixels as a time (smooth scrolling).
>
> How can I detect this in LCL? If not LCL, how can I detect this in
> Win32 API and XLib directly? If it's only possible via directly
> looking at the windowing system, anybody know where I can find
> documentation on this?
>
>
> Regards,
> - Graeme -
>
>
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
>
More information about the Lazarus
mailing list