projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0af9fb0
)
make it clear that there is no drag threshold for NoteCreateDrag.
author
nick_m
<mainsbridge@gmail.com>
Sat, 19 Nov 2016 17:55:34 +0000
(
04:55
+1100)
committer
nick_m
<mainsbridge@gmail.com>
Sat, 19 Nov 2016 17:55:34 +0000
(
04:55
+1100)
gtk2_ardour/editor_drag.h
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_drag.h
b/gtk2_ardour/editor_drag.h
index 1b8bfb140892345c41b63a3997375ad93fee196d..0a413f05bad3608598fff891c1b740854ccbb8df 100644
(file)
--- a/
gtk2_ardour/editor_drag.h
+++ b/
gtk2_ardour/editor_drag.h
@@
-591,6
+591,11
@@
private:
double y_to_region (double) const;
ARDOUR::framecnt_t grid_frames (framepos_t) const;
+ /** @return minimum number of frames (in x) and pixels (in y) that should be considered a movement */
+ virtual std::pair<ARDOUR::framecnt_t, int> move_threshold () const {
+ return std::make_pair (0, 0);
+ }
+
MidiRegionView* _region_view;
ArdourCanvas::Rectangle* _drag_rect;
framepos_t _note[2];