Color palette does not scroll (fix #1796)

This commit is contained in:
Gaspar Capello 2018-07-27 17:49:06 -03:00 committed by David Capello
parent 71b14fa2d9
commit 5e86884f74

View File

@ -340,6 +340,11 @@ bool PaletteView::onProcessMessage(Message* msg)
m_delegate->onPaletteViewIndexChange(idx, buttons); m_delegate->onPaletteViewIndexChange(idx, buttons);
} }
} }
if (m_state == State::DRAGGING_OUTLINE &&
m_hot.part == Hit::COLOR) {
update_scroll(m_hot.color);
}
if (hasCapture()) if (hasCapture())
return true; return true;