I need to add drag&drop
event on mobile devices, the touchstart
event is firing as expected but there is no visible effect.
So, is there a possibility to start a native drag and drop event on touchstart
or do you know an example, for instance with @HostListener
, which shows how to handle this issue?
this.htmlElement.ontouchstart = (touchEvent: TouchEvent) => {
// here I check if user intend starting a drag&drop or if there are some other touch behaviours
if (dragging) {
// What to do here to start drag and drop
}
}
Thanks in advance for your replies!