Make horizontal scroll increment consistent in ruler and track canvas areas
In response to a comment in #6722, as there is little delineation between the ruler and track canvas areas it makes sense to keep the scrolling step the same to avoid unintended jumps in scrolling if mouse cursor moves between areas.
This commit is contained in:
parent
b6eab5ede5
commit
452e39f8a3
@ -1030,7 +1030,7 @@ Editor::canvas_ruler_event (GdkEvent *event, ArdourCanvas::Item* item, ItemType
|
|||||||
case GDK_SCROLL_UP:
|
case GDK_SCROLL_UP:
|
||||||
if (Keyboard::modifier_state_equals(event->scroll.state,
|
if (Keyboard::modifier_state_equals(event->scroll.state,
|
||||||
Keyboard::ScrollHorizontalModifier)) {
|
Keyboard::ScrollHorizontalModifier)) {
|
||||||
scroll_left_half_page ();
|
scroll_left_step ();
|
||||||
} else if (UIConfiguration::instance().get_use_mouse_position_as_zoom_focus_on_scroll()) {
|
} else if (UIConfiguration::instance().get_use_mouse_position_as_zoom_focus_on_scroll()) {
|
||||||
temporal_zoom_step_mouse_focus (false);
|
temporal_zoom_step_mouse_focus (false);
|
||||||
} else {
|
} else {
|
||||||
@ -1042,7 +1042,7 @@ Editor::canvas_ruler_event (GdkEvent *event, ArdourCanvas::Item* item, ItemType
|
|||||||
case GDK_SCROLL_DOWN:
|
case GDK_SCROLL_DOWN:
|
||||||
if (Keyboard::modifier_state_equals(event->scroll.state,
|
if (Keyboard::modifier_state_equals(event->scroll.state,
|
||||||
Keyboard::ScrollHorizontalModifier)) {
|
Keyboard::ScrollHorizontalModifier)) {
|
||||||
scroll_right_half_page ();
|
scroll_right_step ();
|
||||||
} else if (UIConfiguration::instance().get_use_mouse_position_as_zoom_focus_on_scroll()) {
|
} else if (UIConfiguration::instance().get_use_mouse_position_as_zoom_focus_on_scroll()) {
|
||||||
temporal_zoom_step_mouse_focus (true);
|
temporal_zoom_step_mouse_focus (true);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user