From 8a78c7fbaa0f2c3f292d67678f9f4d565a2251b4 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 3 Oct 2011 12:58:06 -0400 Subject: Check for the beginning of the page as well --- src/uzbl-core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/uzbl-core.c b/src/uzbl-core.c index e869162..e70b5e7 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -338,6 +338,8 @@ scroll(GtkAdjustment* bar, gchar *amount_str) { max_value = gtk_adjustment_get_upper(bar) - page_size; + if (value < 0) + value = 0; /* don't scroll past the beginning of the page */ if (value > max_value) value = max_value; /* don't scroll past the end of the page */ -- cgit v1.2.3