aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-03 16:36:03 -0400
committerPaul Gilbert2016-09-03 16:36:03 -0400
commitf8fc43be99aae36110b22f2016c9d62f1df2bd28 (patch)
treea68741d541e80515bc268675c4f0e3248fee0760 /engines/sherlock/tattoo
parenta69eebe53b2add4e98e3c875180e13c194b9d73b (diff)
downloadscummvm-rg350-f8fc43be99aae36110b22f2016c9d62f1df2bd28.tar.gz
scummvm-rg350-f8fc43be99aae36110b22f2016c9d62f1df2bd28.tar.bz2
scummvm-rg350-f8fc43be99aae36110b22f2016c9d62f1df2bd28.zip
SHERLOCK: RT: Fix hang clicking on edge of inventory verb list borders
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/widget_inventory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/tattoo/widget_inventory.cpp b/engines/sherlock/tattoo/widget_inventory.cpp
index 9f126cf7a7..c0b3180a51 100644
--- a/engines/sherlock/tattoo/widget_inventory.cpp
+++ b/engines/sherlock/tattoo/widget_inventory.cpp
@@ -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;