forked from len0rd/rockbox
text viewer: can select "move to prev/next page" or "move to top page/bottom page" when LEFT/RIGHT key is pressed (narrow mode).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26719 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c92b2cc16a
commit
8bdb1c04d3
6 changed files with 54 additions and 19 deletions
|
|
@ -114,12 +114,16 @@ enum plugin_status plugin_start(const void* file)
|
|||
tv_scroll_left(TV_HORIZONTAL_SCROLL_PREFS);
|
||||
}
|
||||
else { /* prefs->windows == 1 */
|
||||
/* scroll to previous page */
|
||||
tv_scroll_up(TV_VERTICAL_SCROLL_PAGE);
|
||||
#if 0
|
||||
/* Top of file */
|
||||
tv_top();
|
||||
#endif
|
||||
if (prefs->narrow_mode == NM_PAGE)
|
||||
{
|
||||
/* scroll to previous page */
|
||||
tv_scroll_up(TV_VERTICAL_SCROLL_PAGE);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Top of file */
|
||||
tv_top();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
@ -131,12 +135,16 @@ enum plugin_status plugin_start(const void* file)
|
|||
tv_scroll_right(TV_HORIZONTAL_SCROLL_PREFS);
|
||||
}
|
||||
else { /* prefs->windows == 1 */
|
||||
/* scroll to next page */
|
||||
tv_scroll_down(TV_VERTICAL_SCROLL_PAGE);
|
||||
#if 0
|
||||
/* Bottom of file */
|
||||
tv_bottom();
|
||||
#endif
|
||||
if (prefs->narrow_mode == NM_PAGE)
|
||||
{
|
||||
/* scroll to next page */
|
||||
tv_scroll_down(TV_VERTICAL_SCROLL_PAGE);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Bottom of file */
|
||||
tv_bottom();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue