Issues creating a simple Drag and Drop Interactive


(thejoepeach) #1

A client ask me to develop a simple drag and drop quiz that after a user drag a element over another, if its the right answer it play another scene… i was able to work perfect in desktop but is not working in mobile:
http://freefallmotion.com/clientes/educativo/sampler_drag_drop/index.html
Also here is the code:
http://freefallmotion.com/clientes/educativo/sampler_drag_drop.zip

Since i a am not a seasoned coder, maybe someone can give it a look and find out why isnt work… thanks in advance…


(Hans-Gerd Claßen) #2

the touch-punch-hack throws an error.
be sure to load librarys in the right order: jquery -> jqueryUI -> touchpunch
avoid to load libraries several times

also touchpunch depends on jqueryUIwidget and -mouse. be sure those are included in your Version

Note:
when using hype it’s quite heavyweight to depend on all those libraries …
the (jquery -> jqueryUI -> touchpunch)-setup is really slow on mobile