mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-18 16:21:07 +00:00
Fix redrawing PaletteView when dragging colors (fix #1616)
Regression introduced in 86c8bc57a5c5e2093194abf10ad6331de50cfd33
This commit is contained in:
parent
338ed9dd49
commit
27f0182bdb
@ -415,10 +415,11 @@ bool PaletteView::onProcessMessage(Message* msg)
|
||||
if (hit != m_hot) {
|
||||
// Redraw only when we put the mouse in other part of the
|
||||
// widget (e.g. if we move from color to color, we don't want
|
||||
// to redraw the whole widget).
|
||||
if (hit.part != m_hot.part)
|
||||
// to redraw the whole widget if we're on WAITING state).
|
||||
if ((m_state == State::WAITING && hit.part != m_hot.part) ||
|
||||
(m_state != State::WAITING && hit != m_hot)) {
|
||||
invalidate();
|
||||
|
||||
}
|
||||
m_hot = hit;
|
||||
}
|
||||
setCursor();
|
||||
|
Loading…
x
Reference in New Issue
Block a user