mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/792
This commit is contained in:
committed by
ArthurSonzogni
parent
6618d099f5
commit
1d797eeed4
@@ -124,7 +124,8 @@ class ButtonBase : public ComponentBase, public ButtonOption {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (event.mouse().IsPressed()) {
|
||||
if (event.mouse().button == Mouse::Left &&
|
||||
event.mouse().motion == Mouse::Pressed) {
|
||||
TakeFocus();
|
||||
OnClick();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user