mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
Fix #166
This commit is contained in:
@@ -529,6 +529,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u
|
||||
return true
|
||||
else
|
||||
g_game.use(useThing)
|
||||
return true
|
||||
end
|
||||
return true
|
||||
elseif lookThing and keyboardModifiers == KeyboardShiftModifier and (mouseButton == MouseLeftButton or mouseButton == MouseRightButton) then
|
||||
|
||||
@@ -51,8 +51,10 @@ function UIGameMap:onDrop(widget, mousePos)
|
||||
end
|
||||
|
||||
function UIGameMap:onMousePress()
|
||||
if not self:isDragging() then
|
||||
self.allowNextRelease = true
|
||||
end
|
||||
end
|
||||
|
||||
function UIGameMap:onMouseRelease(mousePosition, mouseButton)
|
||||
if not self.allowNextRelease then
|
||||
|
||||
Reference in New Issue
Block a user