diff --git a/srcjs/stendhal/main.js b/srcjs/stendhal/main.js index 61bab0d99c2..0fe917179d7 100644 --- a/srcjs/stendhal/main.js +++ b/srcjs/stendhal/main.js @@ -139,6 +139,7 @@ stendhal.main = { var minimap = document.getElementById("minimap"); minimap.addEventListener("click", stendhal.ui.minimap.onClick); + minimap.addEventListener("dblclick", stendhal.ui.minimap.onClick); var buddyList = document.getElementById("buddyList"); buddyList.addEventListener("mouseup", stendhal.ui.buddyList.onMouseUp); diff --git a/srcjs/stendhal/ui/minimap.js b/srcjs/stendhal/ui/minimap.js index a338e66e3c3..813d64e8740 100644 --- a/srcjs/stendhal/ui/minimap.js +++ b/srcjs/stendhal/ui/minimap.js @@ -174,6 +174,11 @@ stendhal.ui.minimap = { x: x.toString(), y: y.toString() }; + + if ("type" in e && e["type"] === "dblclick") { + action["double_click"] = ""; + } + marauroa.clientFramework.sendAction(action); } }