$ git clone http://tcclient.ion.nu/tc_client.git
commit fdc97cb0fe6265cf3e2ff1966ceae19fa5877e13
Author: Alicia <...>
Date:   Wed Apr 8 13:16:02 2015 +0200

    tc_client-gtk: added a margin to the autoscroll code, which should make scrolling work better when resizing the window or panes.

diff --git a/ChangeLog b/ChangeLog
index d887e2f..d7c6758 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+0.31:
+tc_client-gtk: added a margin to the autoscroll code, which should make scrolling work better when resizing the window or panes.
 0.30:
 Adjusted the configure script for compatibility with shells that still interpret escaped characters in single-quotes (contributed by Jade)
 Added a /topic command to set the channel topic.
diff --git a/Makefile b/Makefile
index fd09f32..8447c72 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION=0.30
+VERSION=0.31pre
 CFLAGS=-g3 -Wall $(shell curl-config --cflags)
 LIBS=-g3 $(shell curl-config --libs)
 ifneq ($(wildcard config.mk),)
diff --git a/utilities/gtk/gui.c b/utilities/gtk/gui.c
index c59a207..aa7f8df 100644
--- a/utilities/gtk/gui.c
+++ b/utilities/gtk/gui.c
@@ -25,7 +25,7 @@ char autoscroll_before(GtkAdjustment* scroll)
   int upper=gtk_adjustment_get_upper(scroll);
   int size=gtk_adjustment_get_page_size(scroll);
   int value=gtk_adjustment_get_value(scroll);
-  return (value+size==upper);
+  return (value+size+20>=upper);
 }
 
 void autoscroll_after(GtkAdjustment* scroll)