mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
Fix #166
This commit is contained in:
@@ -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
|
||||||
|
@@ -51,7 +51,9 @@ function UIGameMap:onDrop(widget, mousePos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function UIGameMap:onMousePress()
|
function UIGameMap:onMousePress()
|
||||||
self.allowNextRelease = true
|
if not self:isDragging() then
|
||||||
|
self.allowNextRelease = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function UIGameMap:onMouseRelease(mousePosition, mouseButton)
|
function UIGameMap:onMouseRelease(mousePosition, mouseButton)
|
||||||
|
Reference in New Issue
Block a user