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

Mapping - lock axis and position #18

Open
m1ga opened this issue Dec 1, 2014 · 0 comments
Open

Mapping - lock axis and position #18

m1ga opened this issue Dec 1, 2014 · 0 comments

Comments

@m1ga
Copy link

m1ga commented Dec 1, 2014

drag

Setup is like this:

var all = Ti.UI.View({width:600,height:100});
var handle =  Draggable.createView({
                width:20,
                height:100,
                backgroundColor:"#f00",
                right:0,
                top:0,
                draggableConfig : {
                    axis:"y",
                    ensureRight : true,
                    ensureBottom : true,
                    maps: [{
                        view:all,
                        parallaxAmount:1
                    }]
                }
            });

all.add(handle);

How can I prevent the red handle from moving outside and how can I set the axis for the mapped view to y only?

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

1 participant