mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add 'change-on-release' trackbar property & fix mouseRelease event timing
This commit is contained in:
parent
3fee1072b7
commit
8ca12127db
4 changed files with 22 additions and 2 deletions
|
|
@ -131,7 +131,7 @@ void GUI::actMouse(float delta) {
|
|||
focus->defocus();
|
||||
focus = nullptr;
|
||||
}
|
||||
} else if (pressed) {
|
||||
} else if (!Events::clicked(mousecode::BUTTON_1) && pressed) {
|
||||
pressed->mouseRelease(this, Events::cursor.x, Events::cursor.y);
|
||||
pressed = nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue