This is my take on touch screen scrolling. The code is probably overly complicated as it tends to be when I program it, but the end result is working very well, and it is also very easy to customize.
Features
Through alterable values you can:
- Select horizonal or vertical scrolling, or both. 1 =on, 0 = off.
- Select deccelaration strength (1 = no decceleration, default is 10)
- Select non-scrolling areas (useful when you have menubars, borders etc..)
- Set x and y startposition
The zipfile includes both the widget and an example.
How to install
Put the widget in your lib/objects directory. You may need to restart Fusion.
How to setup
You find the widget in the library window. Double click it and then simply drag the widget into your frame to use it. No events are neccessary. Just make sure the framearea is bigger than the application window (to make room for scrolling).