Shoot after moving hoverboard crosshair.

This commit is contained in:
NathanSweet 2017-09-14 20:21:41 +02:00
parent 4fe53ac856
commit 1cb78f658d

View File

@ -113,6 +113,7 @@ var hoverboardDemo = function(canvas, bgColor) {
}
},
up: function(x, y) {
if (target && target.data.name == "crosshair") $("#hoverboard-shoot").click();
target = null;
},
dragged: function(x, y) {