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

Move element from javascript #34

Closed
jgarmar opened this issue Feb 11, 2015 · 4 comments
Closed

Move element from javascript #34

jgarmar opened this issue Feb 11, 2015 · 4 comments

Comments

@jgarmar
Copy link

jgarmar commented Feb 11, 2015

Hi! Is there anyway to move the draggable element without touch them? I'm trying to move to position I click.

Thanks!

@mzabriskie
Copy link
Collaborator

This isn't currently supported by react-draggable itself. You could easily do this on your own by setting the top, and left styles.

@jgarmar
Copy link
Author

jgarmar commented Feb 17, 2015

Ok but it seems that top and left values are stored in some place because
if I change this values and then try to drag with mouse, instantly turns
last top and left before change values, and moves with the mouse
El 17/2/2015 18:27, "Matt Zabriskie" notifications@github.com escribió:

This isn't currently supported by react-draggable itself. You could easily
do this on your own by setting the top, and left styles.


Reply to this email directly or view it on GitHub
#34 (comment)
.

@STRML
Copy link
Collaborator

STRML commented Apr 30, 2015

This is incoming when I merge #31.

STRML added a commit that referenced this issue May 1, 2015
Fixes:
* #48 (draggable start at current position),
* #34 (move element from javascript),
* #46 (spaces to tabs),
* Parts of #31 ('moveOnStartChange', add node to drag callbacks,
     fix pendingState in drag callbacks)
* Linting errors
* Documentation
@STRML
Copy link
Collaborator

STRML commented May 1, 2015

Fixed in 611c895.

@STRML STRML closed this as completed May 1, 2015
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

No branches or pull requests

3 participants