mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Merge branch 'fix-2776' of https://github.com/ruerob/aseprite into ruerob-fix-2776
This commit is contained in:
commit
b5414c5d95
@ -317,6 +317,12 @@ bool PaletteView::onProcessMessage(Message* msg)
|
||||
switch (m_hot.part) {
|
||||
|
||||
case Hit::COLOR:
|
||||
// Clicking outside the palette range will deselect
|
||||
if (m_hot.color >= currentPalette()->size()) {
|
||||
deselect();
|
||||
break;
|
||||
}
|
||||
|
||||
m_state = State::SELECTING_COLOR;
|
||||
|
||||
// As we can ctrl+click color bar + timeline, now we have to
|
||||
|
Loading…
Reference in New Issue
Block a user