Skip to content

Commit

Permalink
Fix glitch with Selection Tool + Alt (fix aseprite#3976)
Browse files Browse the repository at this point in the history
Prior to this fix, when the mouse exited and re-entered the editor
area, the Subtract Selection quick command would inadvertently
change to 'rotate shape'.
  • Loading branch information
Gasparoken committed Jul 24, 2023
1 parent 400456c commit 3cec15b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/app/ui/editor/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1917,8 +1917,19 @@ bool Editor::onProcessMessage(Message* msg)

case kMouseEnterMessage:
m_brushPreview.hide();
updateToolLoopModifiersIndicators();
updateQuicktool();

// Not update tool loop modifiers when the mouse exits and
// re-enters the editor area while the mouse has an
// active 'click'.
// If it isn't done, when the mouse exits and re-enters the
// editor area, the Subtract Selection quick command
// (for example) will change to 'rotate shape'.
// More details:
// https://github.com/aseprite/aseprite/issues/3976
if (!hasCapture()) {
updateToolLoopModifiersIndicators();
updateQuicktool();
}
break;

case kMouseLeaveMessage:
Expand Down

0 comments on commit 3cec15b

Please sign in to comment.