diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-16 17:14:20 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-16 17:14:20 +0800 |
| commit | 1ce8866e5b88da6cc4b7cd4d3440f7d70c7be5db (patch) | |
| tree | c43f76eb308ed59570e61ed647371cce5e68d32e /src/ui/helper/ClickDetector.cpp | |
| parent | 1ef4651c4002eb3a155bcd36fed1e5b6b63b1c80 (diff) | |
| download | cru-1ce8866e5b88da6cc4b7cd4d3440f7d70c7be5db.tar.gz cru-1ce8866e5b88da6cc4b7cd4d3440f7d70c7be5db.tar.bz2 cru-1ce8866e5b88da6cc4b7cd4d3440f7d70c7be5db.zip | |
Remove SelfResolvable.
Diffstat (limited to 'src/ui/helper/ClickDetector.cpp')
| -rw-r--r-- | src/ui/helper/ClickDetector.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/helper/ClickDetector.cpp b/src/ui/helper/ClickDetector.cpp index cf219db0..796c3ad4 100644 --- a/src/ui/helper/ClickDetector.cpp +++ b/src/ui/helper/ClickDetector.cpp @@ -77,12 +77,10 @@ ClickDetector::ClickDetector(controls::Control* control) { button == button_) { if (this->state_ == ClickState::Press) { this->SetState(ClickState::Hover); - auto resolver = this->control_->CreateResolver(); this->event_.Raise(ClickEventArgs{this->control_, this->down_point_, args.GetPoint(), button}); - auto c = resolver.Resolve(); - if (c) c->ReleaseMouse(); + this->control_->ReleaseMouse(); } else if (this->state_ == ClickState::PressInactive) { this->SetState(ClickState::None); this->control_->ReleaseMouse(); |
