'React draggable events don't work in mobile
My code in React with onDrag events works well in desktop, but in mobile versions it doesn't. I don't know if is necessary another option in mobile
This is the code I'm trying (using Chrome devtools for drag&drop as mobile)
const Board = () => {
const onDragHandler = e => {
console.log('This is dragging')
}
return (
<div>
<div
draggable
className="box"
onDragStart={onDragHandler}
></div>
</div>
)
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
