Clone in a terminal:
Commit 5c10867
Johan Mattsson - 2015-06-15T21:10:44+00:00
5c1086780c470a900a2e82e097773d0926f0978djohan.mattsson.m@gmail.com

Merge branch '2.10'

Changed files (4)

Diff

diff --git a/libbirdfont/SettingsDisplay.vala b/libbirdfont/SettingsDisplay.valaindex bb42edf..110a632 100644--- a/libbirdfont/SettingsDisplay.vala+++ b/libbirdfont/SettingsDisplay.vala@@ -220,7 +220,7 @@ public abstract class SettingsDisplay : FontDisplay { 	} 	 	public override void scroll_wheel (double x, double y, double pixeldelta, double dy) {-		if (dy > 0) {+		if (dy < 0) { 			foreach (SettingsItem s in tools) { 				if (s.handle_events && s.button != null) { 					if (((!) s.button).is_over (x, y)) {@@ -240,7 +240,7 @@ public abstract class SettingsDisplay : FontDisplay { 			}		 		} 		-		scroll += dy * MainWindow.units;+		scroll -= dy * MainWindow.units;  		if (scroll + allocation.height >=  content_height) { 			scroll = content_height - allocation.height;diff --git a/libbirdfont/TabContent.vala b/libbirdfont/TabContent.valaindex 889ce15..e50f359 100644--- a/libbirdfont/TabContent.vala+++ b/libbirdfont/TabContent.vala@@ -220,7 +220,7 @@ public class TabContent : GLib.Object { 		} 		 		if (!MainWindow.get_menu ().show_menu) {-			GlyphCanvas.current_display.scroll_wheel (x, y, 15, 0);+			GlyphCanvas.current_display.scroll_wheel (x, y, 0, 15); 		} 	} 	@@ -230,7 +230,7 @@ public class TabContent : GLib.Object { 		} 		 		if (!MainWindow.get_menu ().show_menu) {-			GlyphCanvas.current_display.scroll_wheel (x, y, -15, 0);+			GlyphCanvas.current_display.scroll_wheel (x, y, 0, -15); 		} 	} diff --git a/libbirdfont/Table.vala b/libbirdfont/Table.valaindex 65b907d..5a26090 100644--- a/libbirdfont/Table.vala+++ b/libbirdfont/Table.vala@@ -211,7 +211,7 @@ public abstract class Table : FontDisplay { 	} 	 	public override void scroll_wheel (double x, double y, double pixeldelta, double dy) {-		scroll += dy * MainWindow.units;+		scroll -= dy * MainWindow.units;  		if (scroll > page_height - allocation.height) { 			scroll = page_height - allocation.height;diff --git a/libbirdfont/TableLayout.vala b/libbirdfont/TableLayout.valaindex d797629..c75c752 100644--- a/libbirdfont/TableLayout.vala+++ b/libbirdfont/TableLayout.vala@@ -212,22 +212,20 @@ public class TableLayout : FontDisplay { 	} 	 	public override void scroll_wheel (double x, double y, double pixeldelta, double dy) {-		scroll += dy * MainWindow.units;--		if (dy > 0){			-			if (scroll + allocation.height >=  content_height) {-				scroll = content_height - allocation.height;-				-				if (scroll < 0) {-					scroll = 0;-				}-			}-		} else {+		scroll -= dy * MainWindow.units;+		+		if (scroll + allocation.height >=  content_height) {+			scroll = content_height - allocation.height;+			 			if (scroll < 0) { 				scroll = 0;-			}		+			} 		} 		+		if (scroll < 0) {+			scroll = 0;+		}		+ 		update_scrollbar (); 		GlyphCanvas.redraw (); 	}

Contact

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