diff options
author | nick_m <mainsbridge@gmail.com> | 2015-05-23 23:19:00 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-05-23 23:19:00 +1000 |
commit | 39d4bbf5e16662929719bb1884b741ffc8805adf (patch) | |
tree | 6e62830cb54c99ae85f071593e522ef991c4df6b /gtk2_ardour/editor_drag.cc | |
parent | 406bcb4dfe8a2e7dae33b550efe7fa561214ef98 (diff) |
Clarify the convention on modifiers and drags.
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index f9222ac35a..00811f6eea 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -404,6 +404,11 @@ Drag::motion_handler (GdkEvent* event, bool from_autoscroll) } else { _initially_vertical = false; } + /** check constraints for this drag. + * Note that the current convention is to use "contains" for + * key modifiers during motion and "equals" when initiating a drag. + * In this case we haven't moved yet, so "equals" applies here. + */ if (Config->get_edit_mode() != Lock) { if (event->motion.state & Gdk::BUTTON2_MASK) { // if dragging with button2, the motion is x constrained, with constraint modifier it is y constrained |