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

Draggables moving behaviour inverted in some cases #1013

Closed
jesstelford opened this issue Dec 14, 2018 · 3 comments
Closed

Draggables moving behaviour inverted in some cases #1013

jesstelford opened this issue Dec 14, 2018 · 3 comments

Comments

@jesstelford
Copy link
Contributor

jesstelford commented Dec 14, 2018

Bug or feature request?

Bug

Expected behavior

  1. Draggable moves out of the way once center of gravity of dragged item moves over it.
  2. Draggable only moves out of the way when dragging toward it

Actual behavior

  1. Draggable is moving out of the way before center of gravity of dragged item has moved over it, because...
  2. moving the dragged item away from a draggable makes that draggable move out of the way (or, rather; into the way).

Steps to reproduce

Gif:
screen recording 2018-12-14 at 2 26 06 pm

What version of React are you using?

16.7.0-alpha

What version of react-beautiful-dnd are you running?

10.0.1

What browser are you using?

Chrome 71.0.3578.98 (Official Build) (64-bit)

Demo

I haven't taken time to extract a demo yet, but @alexreardon feel free to come look over my shoulder at my setup next time we're in the same place 👍

@alexreardon
Copy link
Collaborator

Let's look at together when you are in our office next 😊

@alexreardon
Copy link
Collaborator

I suspect it is a rough edge of our algorithm for displacement.

@alexreardon
Copy link
Collaborator

Tracking here: #930

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

No branches or pull requests

2 participants