Commit 7efccc5f authored by Jim Nelson's avatar Jim Nelson

#2268: Mouse wheel was still adjusting slider, even if it was insensitive...

#2268: Mouse wheel was still adjusting slider, even if it was insensitive (during editing, for example).
parent 3c1305dc
......@@ -664,7 +664,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
}
protected override bool on_mousewheel_up(Gdk.EventScroll event) {
if (get_zoom_state().is_max())
if (get_zoom_state().is_max() || !zoom_slider.get_sensitive())
return false;
zoom_about_event_cursor_point(event, ZOOM_INCREMENT_SIZE);
......@@ -672,10 +672,9 @@ public abstract class EditingHostPage : SinglePhotoPage {
}
protected override bool on_mousewheel_down(Gdk.EventScroll event) {
if (get_zoom_state().is_min()) {
if (get_zoom_state().is_min() || !zoom_slider.get_sensitive())
return false;
}
zoom_about_event_cursor_point(event, -ZOOM_INCREMENT_SIZE);
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment