improve panels, inverted brush outline color
This commit is contained in:
@@ -119,6 +119,14 @@ kEventResult Node::on_event(Event* e)
|
||||
}
|
||||
|
||||
bool skip_children = false;
|
||||
|
||||
// skip mouse events if outside
|
||||
if (e->m_cat == kEventCategory::MouseEvent)
|
||||
{
|
||||
MouseEvent* me = static_cast<MouseEvent*>(e);
|
||||
skip_children |= m_mouse_inside && !point_in_rect(me->m_pos, m_clip);
|
||||
}
|
||||
|
||||
skip_children |= (e->m_cat == kEventCategory::MouseEvent || e->m_cat == kEventCategory::GestureEvent) &&
|
||||
(m_mouse_captured) && (root()->current_mouse_capture == this) && m_capture_children; // <-- THIS IS WRONG "!m_capture_children" is correct, but it breaks everything if changed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user