I am going crazy here. I have this .js-code allowing the user to drag and drop a sentence into the right order. TME had helped me with it some time ago. Since then, I had it updated to behave nicely on mobile devices. You can see a working example here. As you can see, it works horizontally on large-screen devices and switches to a vertical layout on smaller screens. So far so good.
For some reason, the drag-and-drop behaviour doesn't work in the new file. The function draginit is called exactly in the same way as in the working example - I can not figure out where the problem is.
Any help is greatly appreciated.