mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Tabs: Use selectTabInternal() in kMouseDownMessage handler
This commit is contained in:
parent
81f41e6793
commit
61fa0b454f
@ -379,14 +379,7 @@ bool Tabs::onProcessMessage(Message* msg)
|
||||
}
|
||||
}
|
||||
else if (mouseMsg->left() && m_selected != m_hot) {
|
||||
m_selected = m_hot;
|
||||
|
||||
// Left-click is processed in mouse down message,
|
||||
// right-click is processed in mouse up.
|
||||
if (m_selected && m_delegate)
|
||||
m_delegate->onSelectTab(this, m_selected->view);
|
||||
|
||||
invalidate();
|
||||
selectTabInternal(m_hot);
|
||||
}
|
||||
|
||||
captureMouse();
|
||||
|
Loading…
x
Reference in New Issue
Block a user