Clarify the convention on modifiers and drags.

This commit is contained in:
nick_m 2015-05-23 23:19:00 +10:00
parent 406bcb4dfe
commit 39d4bbf5e1
1 changed files with 5 additions and 0 deletions

View File

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