mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-28 16:08:12 +01:00
Editor-Summary shift rotates scroll direction #10105
This commit is contained in:
parent
253f883521
commit
fb0bb5aafa
1 changed files with 17 additions and 1 deletions
|
|
@ -29,6 +29,7 @@
|
||||||
#include <ytkmm/menuitem.h>
|
#include <ytkmm/menuitem.h>
|
||||||
|
|
||||||
#include "context_menu_helper.h"
|
#include "context_menu_helper.h"
|
||||||
|
#include "gdk.h"
|
||||||
#include "streamview.h"
|
#include "streamview.h"
|
||||||
#include "editor_summary.h"
|
#include "editor_summary.h"
|
||||||
#include "gui_thread.h"
|
#include "gui_thread.h"
|
||||||
|
|
@ -773,7 +774,22 @@ EditorSummary::on_scroll_event (GdkEventScroll* ev)
|
||||||
get_editor (&xr);
|
get_editor (&xr);
|
||||||
double x = xr.first;
|
double x = xr.first;
|
||||||
|
|
||||||
switch (ev->direction) {
|
GdkScrollDirection direction = ev->direction;
|
||||||
|
|
||||||
|
if (ev->state & Keyboard::TertiaryModifier) {
|
||||||
|
switch (ev->direction) {
|
||||||
|
case GDK_SCROLL_UP:
|
||||||
|
direction = GDK_SCROLL_LEFT;
|
||||||
|
break;
|
||||||
|
case GDK_SCROLL_DOWN:
|
||||||
|
direction = GDK_SCROLL_RIGHT;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (direction) {
|
||||||
case GDK_SCROLL_UP: {
|
case GDK_SCROLL_UP: {
|
||||||
|
|
||||||
summary_zoom_step (-4);
|
summary_zoom_step (-4);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue