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
|
@ -1298,7 +1298,10 @@ public:
|
||||||
if (event.action == MouseAction.ButtonUp && event.button == MouseButton.Left && state & State.Pressed) {
|
if (event.action == MouseAction.ButtonUp && event.button == MouseButton.Left && state & State.Pressed) {
|
||||||
resetState(State.Pressed);
|
resetState(State.Pressed);
|
||||||
if(nextClickIsDouble)
|
if(nextClickIsDouble)
|
||||||
|
{
|
||||||
|
handleClick();
|
||||||
handleDoubleClick();
|
handleDoubleClick();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
handleClick();
|
handleClick();
|
||||||
nextClickIsDouble = false;
|
nextClickIsDouble = false;
|
||||||
|
|
Loading…
Reference in New Issue