Restore cursor shape on exit. (#793) (#794)

Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/792
This commit is contained in:
Arthur Sonzogni
2023-12-17 10:35:21 +01:00
committed by GitHub
parent 348c3853d4
commit a7b6785420
17 changed files with 96 additions and 90 deletions

View File

@@ -42,7 +42,8 @@ class ResizableSplitBase : public ComponentBase {
return true;
}
if (event.mouse().IsPressed() &&
if (event.mouse().button == Mouse::Left &&
event.mouse().motion == Mouse::Pressed &&
separator_box_.Contain(event.mouse().x, event.mouse().y) &&
!captured_mouse_) {
captured_mouse_ = CaptureMouse(event);