Touch backend not working
See original GitHub issueHi -
The documentation does not address this but is the touch backend supposed to simply add touch based dragging or it excludes the regular dragging (in which case is there an all in one backend?..)? I ask because I had setup a basic card for dragging which was working fine on the HTML5 Backend but when I switched to the TouchBackend it stopped working.
const [{isDragging}, drag, preview] = useDrag({
item: {
type: ItemTypes.CARD,
},
collect: monitor => ({
isDragging: !!monitor.isDragging(),
})
})
// structure of how I laid out the draggable component.
<div ref={preview}>
<div ref={drag}>
// some svg icon as handler
</div>
</div>
Any help is appreciated. Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:15 (1 by maintainers)
Top Results From Across the Web
Touch Backend - React DnD
So it will not work on tablet and mobile devices. You can use the react-dnd-touch-backend for touch devices. Installation. Run the following command...
Read more >Can't see the item that I am dragging using React-dnd
And when I do, everything works fine except that I don't see items that I am dragging.
Read more >react-dnd-touch-backend - npm
Touch backend for react-dnd. ... Start using react-dnd-touch-backend in your project by running ... This package does not have a README.
Read more >react-dnd-touch-backend examples - CodeSandbox
Learn how to use react-dnd-touch-backend by viewing and forking react-dnd-touch-backend example apps on CodeSandbox.
Read more >react-dnd-touch-backend-dk - npm package - Snyk
The npm package react-dnd-touch-backend-dk was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same issue - preview not showing up while using
TouchBackend
Ah that seems to have done it! Although now the preview when I drag is not working. Is
Not supported or called something else?