-
Notifications
You must be signed in to change notification settings - Fork 126
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
Mouse backend support #27
Comments
On a closer look through the code, is there any good reason to subscribe to I removed all the event handlers and calling
If I'm not missing something, this would make it backend agnostic, and also simplify the code quite a bit. |
That's a good thought, it would be great to remove the event listeners and make this totally backend agnostic. The reason react-dnd-scrollzone works the way it does right now comes down to performance, for our use case it's not unusual to have 100s of different scrollzones (sometimes even scrollzones inside scrollzones). I'm worried what the performance impact would be if every single component did the I'll try it out and look at the performance profile. |
Thanks a lot for the clarification, makes sense, very helpful. It would be good to at least come up with a way to hook up these event handlers that would not require changes in the lib to support a new backend, something similar to how backends are plugged in React DnD, without making core changes. |
There's also this mouse backend which is not currently supported by this library.
Seems that the only change required to support it would be to add event handlers for
mousemove
, similar to the existing ones fordragover
andtouchmove
. I tried and it works as expected.Any insights, other things to be aware of? It would be great to have this backend also supported.
The text was updated successfully, but these errors were encountered: