Touchscreen Edge Detection

...and did it work for you?