This commit is contained in:
Eduardo Bart 2013-01-25 18:51:14 -02:00
parent 90f1244ab4
commit 18af9a45ee
2 changed files with 4 additions and 1 deletions

View File

@ -529,6 +529,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u
return true return true
else else
g_game.use(useThing) g_game.use(useThing)
return true
end end
return true return true
elseif lookThing and keyboardModifiers == KeyboardShiftModifier and (mouseButton == MouseLeftButton or mouseButton == MouseRightButton) then elseif lookThing and keyboardModifiers == KeyboardShiftModifier and (mouseButton == MouseLeftButton or mouseButton == MouseRightButton) then

View File

@ -51,7 +51,9 @@ function UIGameMap:onDrop(widget, mousePos)
end end
function UIGameMap:onMousePress() function UIGameMap:onMousePress()
if not self:isDragging() then
self.allowNextRelease = true self.allowNextRelease = true
end
end end
function UIGameMap:onMouseRelease(mousePosition, mouseButton) function UIGameMap:onMouseRelease(mousePosition, mouseButton)