mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-11 18:41:05 +00:00
Fix problem selecting transparent color from the ColorBar with middle button
When we move the mouse with the middle mouse button, we must trigger onPaletteViewIndexChange() delegate in any case (the middle button doesn't change the m_currentEntry).
This commit is contained in:
parent
2ff0f1e2a4
commit
27485b7ff6
@ -316,10 +316,11 @@ bool PaletteView::onProcessMessage(Message* msg)
|
||||
|
||||
StatusBar::instance()->showColor(0, "",
|
||||
app::Color::fromIndex(idx), 255);
|
||||
MouseButtons buttons = mouseMsg->buttons();
|
||||
|
||||
if (hasCapture() && (idx != m_currentEntry || msg->type() == kMouseDownMessage)) {
|
||||
MouseButtons buttons = mouseMsg->buttons();
|
||||
|
||||
if (hasCapture() && ((idx != m_currentEntry) ||
|
||||
(msg->type() == kMouseDownMessage) ||
|
||||
((buttons & kButtonMiddle) == kButtonMiddle))) {
|
||||
if ((buttons & kButtonMiddle) == 0) {
|
||||
if (!msg->ctrlPressed())
|
||||
deselect();
|
||||
|
Loading…
x
Reference in New Issue
Block a user