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

Constrain X & Y movement with SHIFT key #53

Closed
temuri416 opened this issue Jun 10, 2014 · 8 comments
Closed

Constrain X & Y movement with SHIFT key #53

temuri416 opened this issue Jun 10, 2014 · 8 comments

Comments

@temuri416
Copy link

Would it be possible to add a feature that would force movement of dragged objects only along X or Y axis when SHIFT key is held.

Thanks!

@desandro
Copy link
Owner

Closing here. Keeping discussion at #66

Repository owner locked and limited conversation to collaborators Nov 10, 2014
Repository owner unlocked this conversation Nov 10, 2014
@desandro
Copy link
Owner

Nevermind, #66 is something a bit different.

I think this would be a nice feature to have. But, thinking it over, I imagine it would take a non-trivial amount of code to get it to work with nice UX.

If others would like to see this feature, please +1.

@desandro
Copy link
Owner

I've put together a demo of this feature:

http://codepen.io/desandro/pen/ogvVLw

You can copy/paste the relevant code and get it working for yourself.

@temuri416
Copy link
Author

Fantastic, works exactly as expected.

Do you plan to make it a standard feature?

Thanks a lot!

@ghost
Copy link

ghost commented Nov 11, 2014

Cool man TNANKS!!
Now you can for an example do slider that you can drag both vertical and horizontal, and even go
crazy and drag it how the h#ll you want, will try to add some snap back stuff as well, in meantime check out desandro answer on snapping stuff in #65 .

Keep cool.

@temuri416
Copy link
Author

@desandro Any hope that http://codepen.io/desandro/pen/ogvVLw would make it to 1.2.1?

Cheers!

@desandro desandro changed the title NFR: Add ability to constrain X & Y movement with SHIFT key Constrain X & Y movement with SHIFT key Mar 8, 2015
@desandro
Copy link
Owner

desandro commented Mar 8, 2015

If this issue gets enough +1, I'll consider it. When I tweeted it, it got a fair amount of engagement, so there definitely is a fair amount of interest.

@desandro
Copy link
Owner

Looks like no one else has +1'ed, so I'm going to close this feature request. Thanks again for bring up this issue!

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