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

Can't disable draggable view + miscellaneous #5

Open
bitfabrikken opened this issue Feb 22, 2013 · 6 comments
Open

Can't disable draggable view + miscellaneous #5

bitfabrikken opened this issue Feb 22, 2013 · 6 comments

Comments

@bitfabrikken
Copy link

It seems you can't disable the draggable view made with Draggable.createView(). One would think that setting e.g. touchEnabled to false, would disable the drag funtionality, but it does not.

And: canRotate and canResize do not seem to do anything on Android. But that is perhaps because there's no multitouch support?

Also: Would be very nice if there were some hover functions. E.g. having an array of objects you're dragging over in the move event. Would then be very easy to make CSS style :hover things on elements.

Ps. thanks for an EXCELLENT module!!

@pec1985
Copy link
Owner

pec1985 commented Mar 8, 2013

There is a new property now called isDraggable, by default is set to true. Setting it to false will make it non draggable. About the pinch and zoom, still trying to make it work for android.

@bitfabrikken
Copy link
Author

Thank you so much Pedro! :) Very nice work, and very fast too!

I'd like to request an additional feature, if you have the time - I do wish I myself had the skills to do so, but not yet.

It would be nice if there was some functionality to get the values of the rotation when rotating via. canRotate - and also some way of setting the rotation of the draggable - so you can start out by creating a rotated draggable view.

If you're curious what I need it for, it's for an app aimed at people with autism. The app has an editor which must be able to rotate elements, but also load elements and set the rotation previously saved. Currently I've done this with javascript and transforms, but I'd love to be able to use Ti.draggable to achieve this :)

Also feel free to smack me around if this isn't the proper place for feature suggestions!

@thetaylorjones
Copy link

the property is now called draggable.. which took me quite a while to figure out! Great module but might want to update your documentation. Thanks for the awesome work.

@Softeqa
Copy link

Softeqa commented Sep 18, 2013

Thanks for this Pedro.

I can't find the property isDraggable (or draggable alluded to above) in iOs version 1.3.1? Am I missing something?

@chrisribe
Copy link

I have the same issue too, the isDraggable property does not seem to work (iOS version 1.3.1 from the compiled download link).

http://cl.ly/2y1z2F132P0o

I tried recompiling master branch but the resulting .a file product name has changed and don't know how to proceed.
Thanks

@chrisribe
Copy link

Ahhh missed what bronerd said the property is draggable NOT isDraggable.
Thanks

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

4 participants