DnD: prefer explicit "first-move-happened" (see also 4556f55d8e
)
In case of auto-scroll it is apparently possible that the move_threshold_passed, but ::motion() is not called. There already is an explicit _starting_point_passed variable that is set when first_move occurred. So far it was just unused.
This commit is contained in:
parent
5df0e3d226
commit
9e5fb6ea40
@ -369,12 +369,12 @@ Drag::end_grab (GdkEvent* event)
|
|||||||
|
|
||||||
_item->ungrab ();
|
_item->ungrab ();
|
||||||
|
|
||||||
finished (event, _move_threshold_passed);
|
finished (event, _starting_point_passed);
|
||||||
|
|
||||||
_editor->verbose_cursor()->hide ();
|
_editor->verbose_cursor()->hide ();
|
||||||
_cursor_ctx.reset();
|
_cursor_ctx.reset();
|
||||||
|
|
||||||
return _move_threshold_passed;
|
return _starting_point_passed;
|
||||||
}
|
}
|
||||||
|
|
||||||
timepos_t
|
timepos_t
|
||||||
|
Loading…
Reference in New Issue
Block a user