Disable vertical autoscroll for UI elements where it doesn't make sense

Fixes issue 6396 as well as a few other instances where autoscroll could be annoying
This commit is contained in:
Tyler Stank 2020-12-01 19:57:35 -06:00 committed by Robin Gareus
parent a974a3135e
commit 0cfee47867
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -565,6 +565,10 @@ public:
void finished (GdkEvent *, bool);
void aborted (bool);
bool allow_vertical_autoscroll () const {
return false;
}
private:
MidiRegionView* region;
bool relative;
@ -585,6 +589,11 @@ public:
void aborted (bool);
void setup_pointer_sample_offset ();
bool allow_vertical_autoscroll () const {
return false;
}
private:
double total_dx (GdkEvent * event) const; // total movement in quarter notes
@ -615,6 +624,10 @@ public:
return mode == Editing::MouseDraw || mode == Editing::MouseContent;
}
bool allow_vertical_autoscroll () const {
return false;
}
bool y_movement_matters () const {
return false;
}
@ -681,6 +694,10 @@ public:
return false;
}
bool allow_vertical_autoscroll () const {
return false;
}
void setup_pointer_sample_offset ();
private:
@ -749,6 +766,10 @@ public:
return false;
}
bool allow_vertical_autoscroll () const {
return false;
}
void setup_pointer_sample_offset ();
private:
@ -957,6 +978,10 @@ public:
return false;
}
bool allow_vertical_autoscroll () const {
return false;
}
void setup_pointer_sample_offset ();
};
@ -975,6 +1000,10 @@ public:
return false;
}
bool allow_vertical_autoscroll () const {
return false;
}
void setup_pointer_sample_offset ();
};
@ -1031,6 +1060,11 @@ public:
bool active (Editing::MouseMode m);
bool allow_vertical_autoscroll () const {
return false;
}
private:
ControlPoint* _point;
@ -1054,6 +1088,10 @@ public:
void finished (GdkEvent *, bool);
void aborted (bool);
bool allow_vertical_autoscroll () const {
return false;
}
private:
AutomationLine* _line;