id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3559	Listbox no longer scrolls when dragging outside widget	mooffie		"The listbox widget contains code that makes it possible to scroll the list by dragging the mouse outside (above or below) the widget. Here is its gist:

{{{
static int
listbox_event (Gpm_Event * event, void *data)
{
    ...
    ...

    if ((event->type & (GPM_DOWN | GPM_DRAG)) != 0)
    {
        Gpm_Event local;
        ...

        local = mouse_get_local (event, w);
        if (local.y < 1)
            /* scroll up */
        else if (local.y > w->lines)
            /* scroll down */

}}}

However, this feature stopped working with commit 33d25a0c8f (from 2011), which added the following two lines at the start of the mouse handler:

{{{
    if (!mouse_global_in_widget (event, w))
        return MOU_UNHANDLED;
}}}

I.e., if the mouse is outside the widget, the function exits. So the function no longer sees dragging events occurring outside the widget.
"	defect	closed	minor	4.8.17	mc-core	master	fixed		egmont	3571		no branch	
