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

simultanious events break when view has fixed position. #45

Open
van-beek opened this issue May 11, 2014 · 0 comments
Open

simultanious events break when view has fixed position. #45

van-beek opened this issue May 11, 2014 · 0 comments

Comments

@van-beek
Copy link

NappUI: 1.2.2
Titanium SDK: 3.2.3GA

Below code works great it scales the view and rotates it simultaniously, but if i set a top:100, or a left:100 to pView, to give the view a startup position. u can pinch or u can rotate, not together anymore.

var pView = Ti.UI.createView({
height:300,
width:300,
recognizeSimultaneously:'pinching,rotate',
rotateGesture:true,
pinchingGesture:true,
backgroundColor:'green',
});
pView.addEventListener('pinching',function(e){
this.scale=e.scale;
this.transform=Ti.UI.create2DMatrix().scale(e.scale).rotate(this.rotation);
});
pView.addEventListener('rotate',function(e){
this.rotation=e.rotation*(180/Math.PI);
this.transform=Ti.UI.create2DMatrix().rotate(this.rotation).scale(this.scale);
});

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