bonartm / quizdown-js

Markdown syntax for generating interactive quizzes in the browser
https://bonartm.github.io/quizdown-live-editor/
MIT License
88 stars 24 forks source link

Drag drop list not working for touch devices #6

Closed bonartm closed 3 years ago

bonartm commented 3 years ago

Since the app uses shadow dom inserting an element into the list using drag and drop is not working on touch devices. It has to to with the line

let target = document.elementFromPoint(ev.clientX, ev.clientY).closest(".item");

which doesn't return anything inside the shadow dom.