Thanks, It's a neat game!, I am using it on the ipad so I added support for touch events.
The ontouchmove event handler's event.touches[0].target always points to the originating HTML element (the item) and not the element which is currently under the finger. The element under the finger needs to be computed var targetElement = document.elementFromPoint(xPos, yPos);
Thanks, It's a neat game!, I am using it on the ipad so I added support for touch events.
The ontouchmove event handler's event.touches[0].target always points to the originating HTML element (the item) and not the element which is currently under the finger. The element under the finger needs to be computed var targetElement = document.elementFromPoint(xPos, yPos);