Clone in a terminal:
Commit 298b645
Johan Mattsson - 2015-06-17T10:42:52+00:00
298b645790d1c9fc030807ef6d1b57fe8671822bjohan.mattsson.m@gmail.com

Merge branch '2.10'

Changed files (1)

Diff

diff --git a/libbirdfont/Toolbox.vala b/libbirdfont/Toolbox.valaindex b24c708..ad082b2 100644--- a/libbirdfont/Toolbox.vala+++ b/libbirdfont/Toolbox.vala@@ -202,6 +202,40 @@ public class Toolbox : GLib.Object  { 			} 		} 	}++	public void scroll_wheel (double x, double y, double dx, double dy) {+		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)) {+							if (dy < 0) {+								action = t.scroll_wheel_up_action (t);+							} else {+								action = t.scroll_wheel_down_action (t);+							}+							press_tool = t;+						}+					}+				}+			}+		}+		+		if (!action) {+			scroll_current_set (dy);+		}+		+		redraw_tool_box ();+	} 	 	public void scroll_up (double x, double y) { 		bool action = false;

Contact

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