Clone in a terminal:
Commit f38d10b
Johan Mattsson - 2015-06-17T15:58:03+00:00
f38d10b77bba49bbe0834ee2e114f74c89dee57djohan.mattsson.m@gmail.com

Remove old scroll code

Changed files (1)

Diff

diff --git a/libbirdfont/Toolbox.vala b/libbirdfont/Toolbox.valaindex ad082b2..e8baf88 100644--- a/libbirdfont/Toolbox.vala+++ b/libbirdfont/Toolbox.vala@@ -238,33 +238,7 @@ public class Toolbox : GLib.Object  { 	} 	 	public void scroll_up (double x, double y) {-		bool action = false;-		-		y -= current_set.scroll;-		-		if (MenuTab.suppress_event) {-			warn_if_test ("Event suppressed");-			return;-		}-				-		if (!scrolling_toolbox) {	-			foreach (Expander exp in current_set.get_expanders ()) {-				if (exp.visible) {-					foreach (Tool t in exp.tool) {-						if (t.tool_is_visible () && t.is_over (x, y)) {-							action = t.scroll_wheel_up_action (t);-							press_tool = t;-						}-					}-				}-			}-		}-		-		if (!action) {-			scroll_current_set (35);-		}-		-		redraw_tool_box ();+		scroll_wheel (x, y, 0, -10); 	}  	void scroll_current_set (double d) {@@ -285,28 +259,7 @@ public class Toolbox : GLib.Object  { 	}  	public void scroll_down (double x, double y) {-		bool action = false;--		y -= current_set.scroll;-		-		if (!scrolling_toolbox) {	-			foreach (Expander exp in current_set.get_expanders ()) {-				if (exp.visible) {-					foreach (Tool t in exp.tool) {-						if (t.tool_is_visible () && t.is_over (x, y)) {-							action = t.scroll_wheel_down_action (t);-							press_tool = t;-						}-					}-				}-			}-		}--		if (!action) {-			scroll_current_set (-35);-		}--		redraw_tool_box ();+		scroll_wheel (x, y, 0, 10); 	} 	 	void suppress_scroll () {

Contact

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