GTK's source suggests scroll wheels generally get twice as much scrollypower as arrow keys

svn path=/trunk/netsurf/; revision=10316
This commit is contained in:
Daniel Silverstone 2010-04-08 14:49:36 +00:00
parent 1bbba38519
commit 2dc7d37a43
1 changed files with 4 additions and 4 deletions

View File

@ -552,7 +552,7 @@ gboolean nsgtk_window_scroll_event(GtkWidget *widget,
case GDK_SCROLL_LEFT:
scroll = hscroll;
value = gtk_adjustment_get_value(scroll) -
scroll->step_increment;
(scroll->step_increment * 2);
if (value < scroll->lower)
value = scroll->lower;
break;
@ -560,7 +560,7 @@ gboolean nsgtk_window_scroll_event(GtkWidget *widget,
case GDK_SCROLL_UP:
scroll = vscroll;
value = gtk_adjustment_get_value(scroll) -
scroll->step_increment;
(scroll->step_increment * 2);
if (value < scroll->lower)
value = scroll->lower;
break;
@ -568,7 +568,7 @@ gboolean nsgtk_window_scroll_event(GtkWidget *widget,
case GDK_SCROLL_RIGHT:
scroll = hscroll;
value = gtk_adjustment_get_value(scroll) +
scroll->step_increment;
(scroll->step_increment * 2);
if (value > scroll->upper - alloc->width)
value = scroll->upper - alloc->width;
break;
@ -576,7 +576,7 @@ gboolean nsgtk_window_scroll_event(GtkWidget *widget,
case GDK_SCROLL_DOWN:
scroll = vscroll;
value = gtk_adjustment_get_value(scroll) +
scroll->step_increment;
(scroll->step_increment * 2);
if (value > scroll->upper - alloc->height)
value = scroll->upper - alloc->height;
break;