mirror of https://github.com/buggins/dlangui.git
Add a click event before a double click event
This commit is contained in:
parent
4b05a89731
commit
b1badfd618
src/dlangui/widgets
|
@ -1298,7 +1298,10 @@ public:
|
|||
if (event.action == MouseAction.ButtonUp && event.button == MouseButton.Left && state & State.Pressed) {
|
||||
resetState(State.Pressed);
|
||||
if(nextClickIsDouble)
|
||||
{
|
||||
handleClick();
|
||||
handleDoubleClick();
|
||||
}
|
||||
else
|
||||
handleClick();
|
||||
nextClickIsDouble = false;
|
||||
|
|
Loading…
Reference in New Issue