mouseDoubleClick is triggered on mouseUp

mouseDoubleClick() is triggered on mouseUp while it should be triggered as soon as the second mouseDown occurs, without waiting for the mouse button to be released.

Note that having the double click on mouse down is the default mac OS behaviour (I didn’t check on windows).

Any chance to have a kind of setDoubleClickTriggeredOnMouseDown() method ?

diff.txt (5,5 Ko)

I know this is isn’t the change you asked for, but you can also handle it in the order you wanted to like that:

void mouseDown(const MouseEvent& event) override
{
    if (event.getNumberOfClicks() == 2)
    {
        //...
    }
}