tempo mapping: Mapping Drags should inhibit horizontal autoscroll

This commit is contained in:
Ben Loftis 2023-05-17 09:01:05 -05:00
parent f1f352a6e9
commit 9fa8e257a6
2 changed files with 13 additions and 1 deletions

View File

@ -518,7 +518,7 @@ Drag::motion_handler (GdkEvent* event, bool from_autoscroll)
}
if (!from_autoscroll) {
_editor->maybe_autoscroll (true, allow_vertical_autoscroll (), false);
_editor->maybe_autoscroll (allow_horizontal_autoscroll (), allow_vertical_autoscroll (), false);
}
if (!_editor->autoscroll_active() || from_autoscroll) {

View File

@ -220,6 +220,10 @@ public:
return true;
}
virtual bool allow_horizontal_autoscroll () const {
return true;
}
/** @return true if x movement matters to this drag */
virtual bool x_movement_matters () const {
return true;
@ -926,6 +930,10 @@ public:
return false;
}
bool allow_horizontal_autoscroll () const {
return false;
}
bool y_movement_matters () const {
return false;
}
@ -960,6 +968,10 @@ public:
return false;
}
bool allow_horizontal_autoscroll () const {
return false;
}
bool y_movement_matters () const {
return false;
}