I've implemented drag-scrolling on my Freerunner (drag on the touchscreen to generate scrolling, instead of dragging events). By placing this code into the X mouse driver, all applications that support the mouse wheel (the vast majority do) automatically become finger-scrolling enabled.
With this patch, scroll events are generated by pressing on the touchscreen, and dragging in the desired scroll direction. Dragging can still happen, by pressing the touchscreen, and not moving the finger for a short time (200ms currently). This is useful for selecting text, for example.
If using SHR, just "opkg install" the package and you're ready to go.
1. Right now you can scroll and drag with a similar motion (pause before moving finger to drag). This is not intuitive to new users. 2. The Kdrive X driver has been patched, not yet the Xorg driver. 3. The driver assumes the screen is oriented vertically. If X is rotated, the orientations become wrong
The Illume keyboard doesn't natively support the mouse wheel and contains its own scrolling code.
By default Tangogps zooms in/out in response to the mouse wheel. I feel this is inappropriate, so I disabled it. With the patch below, the mouse wheel does nothing; I haven't connected panning to the wheel. With the patch below, you have to hold your finger for a bit before moving it for the panning to happen. This isn't ideal yet.
I use Dillo as my browser. Dillo uses the FLTK2 toolkit, which supports vertical scrolling by default, but not horizontal scrolling. Here're are FLTK patches to fix this. Also, a fix for an FLTK keyboard bug triggered by the Illume keyboard is included (bug report).