Fix bug #3479239: scroll in correct direction for page left/page right

svn path=/trunk/netsurf/; revision=13435
This commit is contained in:
John Mark Bell 2012-02-08 00:21:20 +00:00
parent b75a3960fc
commit e2bb4aa4e0

View File

@ -3160,10 +3160,10 @@ void ro_gui_window_scroll_action(struct gui_window *g,
state.xscroll += 0x10000000;
break;
case SCROLL_PAGE_UP:
state.xscroll -= visible_x;
state.xscroll += visible_x;
break;
case SCROLL_PAGE_DOWN:
state.xscroll += visible_x;
state.xscroll -= visible_x;
break;
default:
state.xscroll += 2 * step_x;