Skip to content

Commit

Permalink
SHERLOCK: RT: Fix hang clicking on edge of inventory verb list borders
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 3, 2016
1 parent a69eebe commit f8fc43b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/sherlock/tattoo/widget_inventory.cpp
Expand Up @@ -377,14 +377,14 @@ void WidgetInventoryVerbs::handleEvents() {
innerBounds.grow(-3);

// Flag is they started pressing outside of the menu
if (events._firstPress && !_bounds.contains(mousePos))
if (events._firstPress && !innerBounds.contains(mousePos))
_outsideMenu = true;

if (events._released || events._rightReleased || ui._keyState.keycode == Common::KEYCODE_ESCAPE) {
ui._scrollHighlight = SH_NONE;
banishWindow();

if ((_outsideMenu && !innerBounds.contains(mousePos)) || ui._keyState.keycode == Common::KEYCODE_ESCAPE) {
if (_outsideMenu || ui._keyState.keycode == Common::KEYCODE_ESCAPE) {
_owner->_invVerbMode = 0;
} else if (innerBounds.contains(mousePos)) {
_outsideMenu = false;
Expand Down

0 comments on commit f8fc43b

Please sign in to comment.