13
0

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:
Robin Gareus 2022-07-18 18:40:30 +02:00
parent 5df0e3d226
commit 9e5fb6ea40
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -369,12 +369,12 @@ Drag::end_grab (GdkEvent* event)
_item->ungrab ();
finished (event, _move_threshold_passed);
finished (event, _starting_point_passed);
_editor->verbose_cursor()->hide ();
_cursor_ctx.reset();
return _move_threshold_passed;
return _starting_point_passed;
}
timepos_t