Tiny cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@6476 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -2815,14 +2815,8 @@ RubberbandSelectDrag::motion (GdkEvent* event, bool)
|
||||
double y1;
|
||||
double y2;
|
||||
|
||||
/* use a bigger drag threshold than the default */
|
||||
|
||||
nframes64_t const pf = adjusted_current_frame (event, Config->get_rubberbanding_snaps_to_grid ());
|
||||
|
||||
if (abs ((int) (pf - grab_frame())) < 8) {
|
||||
return;
|
||||
}
|
||||
|
||||
nframes64_t grab = grab_frame ();
|
||||
if (Config->get_rubberbanding_snaps_to_grid ()) {
|
||||
_editor->snap_to_with_modifier (grab, event);
|
||||
|
||||
@@ -577,6 +577,10 @@ public:
|
||||
void motion (GdkEvent *, bool);
|
||||
void finished (GdkEvent *, bool);
|
||||
void aborted ();
|
||||
|
||||
std::pair<nframes64_t, int> move_threshold () const {
|
||||
return std::make_pair (8, 1);
|
||||
}
|
||||
};
|
||||
|
||||
/** Region drag in time-FX mode */
|
||||
|
||||
Reference in New Issue
Block a user