Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-06

MouseWheel scroll delta detection

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

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/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys

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 :

Show quoted text 20 lines
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/

Reply by email