Skip to content

pass the bounded x and y in the DraggableData#226

Closed
edeustace wants to merge 4 commits intoreact-grid-layout:masterfrom
corespring:feature/fix-bound-drag
Closed

pass the bounded x and y in the DraggableData#226
edeustace wants to merge 4 commits intoreact-grid-layout:masterfrom
corespring:feature/fix-bound-drag

Conversation

@edeustace
Copy link

I was running into an issue where I was trying to synch a component's position with another one that was being dragged via a Draggable, I was using onDrag for this.

It works fine until you go outside the bounds at which point the x/y would fall out of synch. This PR returns the bounded x/y (set in newState) in DraggableData back to the callback.

@romamatusevich
Copy link

@STRML, can these changes be added to the next release?

@Spiralis Spiralis mentioned this pull request Jul 28, 2017
@romamatusevich
Copy link

@STRML, could you please rerun tests? I think the failed checks may be an environment issue.

STRML added a commit that referenced this pull request Aug 21, 2017
@STRML
Copy link
Collaborator

STRML commented Aug 21, 2017

Ported into 55f701e - thanks for the contribution.

@STRML STRML closed this Aug 21, 2017
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.

3 participants