gitdefence / game-off-2012

Build networks, destroy bugs
http://www.justinmcgirr.com/gitdefence/master/game/
5 stars 1 forks source link

Mouseout should get rid of towerdragger #104

Open crazy2be opened 11 years ago

crazy2be commented 11 years ago

Most noticeable on a touch device, drag from a tower and then release offscreen. Your tower connection stays there, and you can keep drawing more!

crazy2be commented 11 years ago

screenshot_2013-05-13-21-22-25

crazy2be commented 11 years ago

So we have code in inputHandler which should allow this to work, but it doesn't.

Basically, the problem is that the pointerEnd event never gets fired when you drag and release offscreen.