mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-12 01:13:51 +03:00
feat(ui): add CSimpleSlider::OnLayerMouseUp
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -143,6 +143,12 @@ int32_t CSimpleSlider::OnLayerMouseDown(const CMouseEvent& evt, const char* btn)
|
||||
return this->CSimpleFrame::OnLayerMouseDown(evt, btn);
|
||||
}
|
||||
|
||||
int32_t CSimpleSlider::OnLayerMouseUp(const CMouseEvent& evt, const char* btn) {
|
||||
this->m_buttonDown = 0;
|
||||
|
||||
return this->CSimpleFrame::OnLayerMouseUp(evt, btn);
|
||||
}
|
||||
|
||||
int32_t CSimpleSlider::OnLayerTrackUpdate(const CMouseEvent& evt) {
|
||||
if (this->m_buttonDown && this->m_thumbTexture) {
|
||||
auto thumbTexture = this->m_thumbTexture;
|
||||
|
||||
@@ -37,6 +37,7 @@ class CSimpleSlider : public CSimpleFrame {
|
||||
virtual void OnLayerUpdate(float elapsedSec);
|
||||
virtual int32_t OnLayerTrackUpdate(const CMouseEvent& evt);
|
||||
virtual int32_t OnLayerMouseDown(const CMouseEvent& evt, const char* btn);
|
||||
virtual int32_t OnLayerMouseUp(const CMouseEvent& evt, const char* btn);
|
||||
|
||||
// Member functions
|
||||
CSimpleSlider(CSimpleFrame* parent)
|
||||
|
||||
Reference in new issue
Block a user