mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
fix double click behaviour
This commit is contained in:
parent
1354e301c7
commit
9ea50148b8
1 changed files with 1 additions and 1 deletions
|
|
@ -188,8 +188,8 @@ void GUI::actMouse(Frame& frame, float delta, const CursorState& cursor) {
|
||||||
doubleClicked = true;
|
doubleClicked = true;
|
||||||
} else {
|
} else {
|
||||||
pressed->click(cursorPos.x, cursorPos.y);
|
pressed->click(cursorPos.x, cursorPos.y);
|
||||||
|
doubleClickTimer = 0.0f;
|
||||||
}
|
}
|
||||||
doubleClickTimer = 0.0f;
|
|
||||||
if (focus && focus != pressed) {
|
if (focus && focus != pressed) {
|
||||||
focus->defocus();
|
focus->defocus();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue