Finger Scrolling

From Openmoko

Revision as of 07:55, 3 September 2009 by Budfive (Talk | contribs)

Jump to: navigation, search

Contents

Finger-scrolling

Driver

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.

This makes applications not specifically designed for touchscreen devices work much better, since scrolling can happen by touching the screen anywhere, not just on the scrollbars at the edges of the windows. Apps designed for touchscreen devices (like illume and anything built with elementary) don't work as well, since some of the scrolling functionality is implemented at a higher level, and potentially conflicts with the new code.

dual behavior

not in xorg

doesn't work when screen tilted

xglamo patch: [1]

bitbake recipe including the patch: [2]

precompiled package (works with SHR): [3]

Application-level support

Illume keyboard

The Illume keyboard doesn't natively support the mouse wheel and contains its own scrolling code.

e-wm patch: [4]

e-wm recipe: [5]

e-wm package: [6]

Tangogps

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.

tangogps patch: [7]

tangogps .inc (used in the recipe): [8]

tangogps package: [9]


FLTK

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).

Horizontal scrolling patch Keyboard patch recipe package

Personal tools

Finger-scrolling

Driver

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.

This makes applications not specifically designed for touchscreen devices work much better, since scrolling can happen by touching the screen anywhere, not just on the scrollbars at the edges of the windows. Apps designed for touchscreen devices (like illume and anything built with elementary) don't work as well, since some of the scrolling functionality is implemented at a higher level, and potentially conflicts with the new code.

dual behavior

not in xorg

doesn't work when screen tilted

xglamo patch: [1]

bitbake recipe including the patch: [2]

precompiled package (works with SHR): [3]

Application-level support

Illume keyboard

The Illume keyboard doesn't natively support the mouse wheel and contains its own scrolling code.

e-wm patch: [4]

e-wm recipe: [5]

e-wm package: [6]

Tangogps

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.

tangogps patch: [7]

tangogps .inc (used in the recipe): [8]

tangogps package: [9]


FLTK

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).

Horizontal scrolling patch Keyboard patch recipe package