Tiny cleanup.

git-svn-id: svn://localhost/ardour2/branches/3.0@6476 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2010-01-12 02:12:15 +00:00
parent c5b78e120a
commit b691c32bc6
2 changed files with 4 additions and 6 deletions

View File

@@ -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);

View File

@@ -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 */