The following workaround works for me. It just requests a redraw of the visible area each time after scrolling:
diff -Naur xournal-0.4.7/src/xo-callbacks.c xournal-fixed/src/xo-callbacks.c --- xournal-0.4.7/src/xo-callbacks.c 2012-07-04 23:02:57.000000000 +0100 +++ xournal-fixed/src/xo-callbacks.c 2013-12-09 22:11:42.545079488 +0000 @@ -2935,6 +2935,11 @@ double viewport_top, viewport_bottom; struct Page *tmppage;
+ GtkAdjustment *v_adj = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(GET_COMPONENT("scrolledwindowMain"))); + GtkAdjustment *h_adj = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(GET_COMPONENT("scrolledwindowMain"))); + + gnome_canvas_request_redraw(canvas,h_adj->value,v_adj->value,h_adj->value+h_adj->page_size,v_adj->value+v_adj->page_size); + if (!ui.view_continuous) return;
if (ui.progressive_bg) rescale_bg_pixmaps();
The following workaround works for me. It just requests a redraw of the visible area each time after scrolling:
diff -Naur xournal- 0.4.7/src/ xo-callbacks. c xournal- fixed/src/ xo-callbacks. c 0.4.7/src/ xo-callbacks. c 2012-07-04 23:02:57.000000000 +0100 fixed/src/ xo-callbacks. c 2013-12-09 22:11:42.545079488 +0000
--- xournal-
+++ xournal-
@@ -2935,6 +2935,11 @@
double viewport_top, viewport_bottom;
struct Page *tmppage;
+ GtkAdjustment *v_adj = gtk_scrolled_ window_ get_vadjustment (GTK_SCROLLED_ WINDOW( GET_COMPONENT( "scrolledwindow Main")) ); window_ get_hadjustment (GTK_SCROLLED_ WINDOW( GET_COMPONENT( "scrolledwindow Main")) ); request_ redraw( canvas, h_adj-> value,v_ adj->value, h_adj-> value+h_ adj->page_ size,v_ adj->value+ v_adj-> page_size) ; continuous) return;
+ GtkAdjustment *h_adj = gtk_scrolled_
+
+ gnome_canvas_
+
if (!ui.view_
if (ui.progressive_bg) rescale_ bg_pixmaps( );