In Button.cpp, the doubleclickFound flag is not cleared
In Button.cpp, the doubleclickFound flag is not cleared until the next time the button is pressed. The Button::isDoubleClicked() member will return true every time it is called until the button is pressed again. The Button::isDoubleClicked() member could be used to clear the flag once it is read.
bool Button::isDoubleClicked(bool proc)
{
bool currentFlagState ;
if(proc) process();
currentFlagState = doubleclickFound; //-------- remember the current flag state
doubleclickFound = false; //-------- clear the doubleclickFound flag
return currentFlagState; //------------ return the actual dooubleclick state
}
Thank you for the bug report! If you're willing to make a pull request, I'd be happy to merge it