fix progress bar mouse capture
This commit is contained in:
@@ -14,6 +14,7 @@ void NodeProgressBar::init()
|
||||
m_color = tpl->m_color;
|
||||
m_border_color = tpl->m_border_color;
|
||||
m_thinkness = tpl->m_thinkness;
|
||||
m_capture_children = false; // don't capture children events on mouse_capture
|
||||
|
||||
m_title = find<NodeText>("title");
|
||||
btn_cancel = find<NodeButton>("btn-cancel");
|
||||
@@ -39,5 +40,5 @@ void NodeProgressBar::set_progress(float p) noexcept
|
||||
void NodeProgressBar::added(Node* parent)
|
||||
{
|
||||
NodeBorder::added(parent);
|
||||
m_body->mouse_capture();
|
||||
mouse_capture();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user