Finger Scrolling

From Openmoko

Revision as of 08:34, 3 September 2009 by Budfive (Talk | contribs)

Jump to: navigation, search

Finger-scrolling

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.

xglamo patch: [1]

bitbake recipe including the patch: [2]

precompiled package (works with SHR): [3]

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.

I have patched the Xglamo touchscreen mouse driver, and the most important SHR app that requires dragging: the Illume keyboard. Let me know if these patches work for you.

Personal tools

Finger-scrolling

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.

xglamo patch: [1]

bitbake recipe including the patch: [2]

precompiled package (works with SHR): [3]

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.

I have patched the Xglamo touchscreen mouse driver, and the most important SHR app that requires dragging: the Illume keyboard. Let me know if these patches work for you.