Clone in a terminal:
Commit 33a2af2
Johan Mattsson - 2015-04-11T22:23:52+00:00
33a2af28f844c3a113892af803bbd8c23755a2b9johan.mattsson.m@gmail.com

Fix scrolling in description tab

Changed files (1)

Diff

diff --git a/libbirdfont/DescriptionDisplay.vala b/libbirdfont/DescriptionDisplay.valaindex 8e7f20e..0146e18 100644--- a/libbirdfont/DescriptionDisplay.vala+++ b/libbirdfont/DescriptionDisplay.vala@@ -319,20 +319,6 @@ public class DescriptionDisplay : FontDisplay { 		if (!(0 <= focus_index < focus_ring.size)) { 			focus_index = 0; 		}-		-		if (w.widget_y < 0) {-			scroll -= allocation.height;--			if (scroll < 0) {-				scroll = 0;-			}			-		} else if (w.widget_y > allocation.height - 30 * MainWindow.units) {-			scroll += allocation.height;-			-			if (scroll + allocation.height >= content_height) {-				scroll = content_height - allocation.height;-			}			-		}   		update_scrollbar (); 		GlyphCanvas.redraw ();@@ -375,7 +361,7 @@ public class DescriptionDisplay : FontDisplay { 	 	public override void scroll_wheel_down (double x, double y) { 		scroll += 25 * MainWindow.units;-+		 		if (scroll + allocation.height >=  content_height) { 			scroll = content_height - allocation.height; 		}

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112