Determine which backend is currently in use
Is there a way to determine which backend is currently in use, so the layout and functionality of the Preview can be altered based on this?
Thanks
Hi @dotmlj,
Would passing this information as part of usePreview's result or Preview's props be enough?
We actually have a different use case for knowing the backend, which is we want to have some places where touch is not supported for drag and drop, but others where it is supported. In this case passing it to the preview wouldn't do the trick.
Using useMultiDrag (and it's drop equivalent), you can explicitly decide which part can be use to drag with Touch, HTML5, etc
https://github.com/LouisBrunner/dnd-multi-backend/tree/main/packages/react-dnd-multi-backend#usemultidrag
Nice, thanks!
@dotmlj As there is a mechanism to do this behaviour, I will be closing this issue. Feel free to reopen if useMultiDrag doesn't work for you.