From f9d0e441d3ada6ac81263b3f7e346c24aa2ea7aa Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 2 Jun 2022 10:32:15 -0300 Subject: [PATCH] Be able to select a range of colors/tiles to the end just moving the mouse outside the palette region --- src/app/ui/palette_view.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/ui/palette_view.cpp b/src/app/ui/palette_view.cpp index 2b6c2360b..06df12e26 100644 --- a/src/app/ui/palette_view.cpp +++ b/src/app/ui/palette_view.cpp @@ -667,8 +667,9 @@ bool PaletteView::onProcessMessage(Message* msg) case kMouseMoveMessage: { MouseMessage* mouseMsg = static_cast(msg); - if (m_state == State::SELECTING_COLOR && - m_hot.part == Hit::COLOR) { + if ((m_state == State::SELECTING_COLOR) && + (m_hot.part == Hit::COLOR || + m_hot.part == Hit::POSSIBLE_COLOR)) { int idx = m_hot.color; idx = base::clamp(idx, 0, std::max(0, m_adapter->size()-1));