New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Randomly totally broken in Firefox #332
Comments
OK, I could reproduce it with the official examples on the official pages. One particular way to trigger it is to drag one node and then quickly double click. Playing around a bit with dragging and quickly double clicking can get into this state in Firefox. It kind of thinks it's in a continuous dragging state. |
This is super weird. I don't think its with the react component though. Initially I thought there was some state inconsistency. But the reload should reset the state. Thus I think the issue is with the HTML dnd backdend.. |
I was thinking along the way. Maybe opening an issue in dnd is a good idea. |
Definitely needs more investigation. I'm also thinking of getting rid of the dependency on react-dnd / html backend entirely. possibly using whatever react-sortable-hoc uses in the backend |
This is an awful bug in Firefox that is not fixed yet. react-dnd/react-dnd#1000 You could try https://github.com/zyzo/react-dnd-mouse-backend -- it would skip over all the browser-specific HTML5 bugs that just keep popping up. Also, react-sortable-hoc doesn't use anything in the backend. It's all manual mouse/touch events. |
Yeah... I wonder if its worth just writing everything manually. I'll talk to the author of I'll definitely check the mouse backend. Thanks @cormacrelf |
(Or even multi-backend with Mouse + Touch. A while back I added a new MouseTransition to multi-backend that makes it easy.)
… On 8 Jul 2018, at 17:15, Wei-Wei Wu ***@***.***> wrote:
Yeah... I wonder if its worth just writing everything manually. I'll talk to the author of react-sortable-hoc
I'll definitely check the mouse backend. Thanks @cormacrelf
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
In Firefox, sometimes, react-sortable-tree can get into a totally locked up state. This means that:
The worst part of this is that reloading the page doesn't solve this issue. Once a page gets into this state, it'll stay this forever. The only fix is to open a new tab and close the old one.
I'm trying to make a reproducible case, but my code is basically node-renderer-default and tree-node-default simplified.
It happens more frequently if I'm clicking on an item quickly after page load.
The text was updated successfully, but these errors were encountered: