Touchscreen: Improved scroll threshold
commit1edda0efc986d4419c217183fbf9c6dc220da57e
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 10 Nov 2010 15:25:15 +0000 (10 15:25 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 10 Nov 2010 15:25:15 +0000 (10 15:25 +0000)
treef106c9118c9191bff00e1468c98540787081c0e8
parent5b1f0efa7d58fee718c3deee27901002e66ef472
Touchscreen: Improved scroll threshold

Remove the hardcoded (and way too small) scroll threshold (the distance moved in pixels before we think the users wants to scroll) and replace it with something based on the actual DPI of the screen.
On Android we call the API for that, on other touchscreens we reimplemented Android's formula (as of 2.2) and calculate it.

Flyspray: 11727

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28548 a1c6a512-1295-4272-9138-f99709370657
13 files changed:
android/src/org/rockbox/RockboxFramebuffer.java
apps/gui/bitmap/list.c
firmware/drivers/touchscreen.c
firmware/export/config/cowond2.h
firmware/export/config/mrobe500.h
firmware/export/config/ondavx747.h
firmware/export/config/ondavx767.h
firmware/export/config/ondavx777.h
firmware/export/config/sim.h
firmware/export/lcd.h
firmware/export/touchscreen.h
firmware/target/hosted/android/lcd-android.c
firmware/target/hosted/sdl/lcd-sdl.c