Graph View: add shift to swap scroll axes

This commit is contained in:
Matt Mayfield
2019-03-06 15:27:19 -06:00
parent 84bed86d10
commit cdffa0ee92
+5
View File
@@ -779,6 +779,11 @@ void GraphView::wheelEvent(QWheelEvent *event) {
}
if (!zooming) {
// Shift to swap axes
if (shift) {
std::swap(delta_h, delta_v);
}
// Minus to correct for scroll vs. zoom behavior on horiz axis
set_scroll_x(x_scroll - (delta_h / 10));
set_scroll_y(y_scroll + (delta_v / 10));