diff options
author | Carl Hetherington <carl@carlh.net> | 2010-01-12 02:12:15 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-01-12 02:12:15 +0000 |
commit | b691c32bc6349acf7f06aa432ce8b33fb655ce6a (patch) | |
tree | f521f62c0a929984583a9858b920ee84685a1219 /gtk2_ardour | |
parent | c5b78e120a8e96d94c27c22251beee523524dadc (diff) |
Tiny cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@6476 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 6 | ||||
-rw-r--r-- | gtk2_ardour/editor_drag.h | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 35b8a0484b..0aa5e53b4e 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -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); diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index 16ef6c4678..2b0207c7df 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -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 */ |