bunkat / wordfind

A small javascript library for generating and solving word find (also known as word search) puzzles.
MIT License
194 stars 110 forks source link

Support for TouchEvents and Handling TouchMove to detect element at position #2

Closed aarti closed 9 years ago

aarti commented 9 years ago

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);

bunkat commented 9 years ago

Thanks for adding this!