aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2011-10-03 12:58:06 -0400
committerGravatar Brendan Taylor <whateley@gmail.com>2011-11-23 18:37:44 -0700
commit8a78c7fbaa0f2c3f292d67678f9f4d565a2251b4 (patch)
tree19ed3abb5f94e07da87cce04b3cf7eb68872128c
parent6a79cdb5cd9c4c93d15642816d398bcbe36fd692 (diff)
Check for the beginning of the page as well
-rw-r--r--src/uzbl-core.c2
1 files changed, 2 insertions, 0 deletions
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 */