Prevent accidental skipping to beginning/end of file in text viewer.
commit3cd7f76094377b5553c4ad360538813db5412ae1
authorTorne Wuff <torne@wolfpuppy.org.uk>
Sat, 20 Mar 2010 21:09:01 +0000 (20 21:09 +0000)
committerTorne Wuff <torne@wolfpuppy.org.uk>
Sat, 20 Mar 2010 21:09:01 +0000 (20 21:09 +0000)
tree13328dcb6559a515abcbf1c2dc010d442388d7c4
parent7042c96b4a695690a491a6494ec67bf77783a7f3
Prevent accidental skipping to beginning/end of file in text viewer.

When the text viewer is not in wide mode, the buttons mapped to move the screen left and right instead jump to the top and bottom of the file. This is very easy to do by accident on most targets, causing you to lose your place. This change requires that the button be held for a long press before it jumps to the top/bottom; short presses simply trigger paging up and down by one page. There is no change in behaviour when wide mode is enabled.

Based on an idea from FS#2648 but implemented differently.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25262 a1c6a512-1295-4272-9138-f99709370657
apps/plugins/viewer.c