mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-31 00:32:48 +00:00
Fix reordering of tabs in docked WorkspaceTabs
This commit is contained in:
parent
7da62f84a1
commit
13c06d8541
@ -307,7 +307,7 @@ bool Tabs::onProcessMessage(Message* msg)
|
||||
if (!m_floatingOverlay) {
|
||||
m_selected->x = m_dragTabX + delta.x;
|
||||
|
||||
int i = (mousePos.x-m_border*guiscale()) / m_selected->width;
|
||||
int i = (mousePos.x - m_border*guiscale() - getBounds().x) / m_selected->width;
|
||||
i = MID(0, i, int(m_list.size())-1);
|
||||
if (i != m_dragTabIndex) {
|
||||
m_list.erase(m_list.begin()+m_dragTabIndex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user