Skip to content
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

Implement mousemove backend #48

Closed
wants to merge 32 commits into from
Closed

Implement mousemove backend #48

wants to merge 32 commits into from

Conversation

gaearon
Copy link
Member

@gaearon gaearon commented Feb 6, 2015

This is the first stab at an alternative backend. When we get this to a properly working state, implementing touch support (#16) will be a piece of cake.

  • Get item displaying while dragging in http://localhost:8080/drag-around-experimental
  • Get item dropping and changing position after drop in http://localhost:8080/drag-around-experimental
  • Implement droppable (enter, leave, over)
  • Add barebone Touch backend
  • Add a mousemove backend example for Dustbin and Sortable, add snapping to mousemove Drag Around
  • Prevent text selection
  • Make sure nested drop targets and drag sources work without a problem, just like with HTML5 backend
  • Decide if we can infer (or allow injectable) mouse cursors for different DropEffects
  • Figure out a way to set specific backends for components and have them exist on page without conflicts. Forbid operations on one backend if another backend is active. Components with different backends shouldn't notice each other. Think this through
  • Make sure mouse is resilient against corner cases
  • Make sure coordinates are calculated correctly regardless of scrolling position
  • Implement Touch backend
  • Internal refactoring (if needed)
  • Update documentation

Huge thanks to @nelix for getting this ball rolling.

@gaearon
Copy link
Member Author

gaearon commented Feb 6, 2015

@nelix

I made some progress, try MouseDragDropMixin and (quite broken) TouchDragDropMixin—both on container and item. MouseDragDropMixin should work OK now, although corner cases may be broken. TouchDragDropMixin only works for moving item and is horribly slow.

Nathan Hutchison and others added 2 commits February 8, 2015 13:07
@gaearon gaearon added this to the v1.0 milestone Mar 2, 2015
@gaearon
Copy link
Member Author

gaearon commented Mar 10, 2015

The useful part of this has already been extracted into 0.9 refactoring, and the rest will be superseded by future work on top of #111 so I'm closing this.

@gaearon gaearon closed this Mar 10, 2015
@gaearon gaearon deleted the backend-mousemove branch May 7, 2015 13:24
@gavinwahl
Copy link

gavinwahl commented Dec 14, 2016

@gaearon Is there a mousemove backend now? I can't find documentation anywhere.

@an5rag
Copy link

an5rag commented Jan 25, 2019

This seems promising: https://github.com/zyzo/react-dnd-mouse-backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants