Hello,
First of all Sencha is a great idea / project!
I've made an app with 2 tabs composed of 2 Carousel, it works fine.
I want to add the pinch function on the images in the Carousel, Iv'e made like this, but it doesn't works:
Code:
items: [{
title: 'Image 1',
html: '<div id="picture"><img src="photos/miami/miami-beach01.jpg" /></div>'
}, {
....
With the event
Code:
Ext.fly('picture').on({
pinchstart : function(e, t) {
this.startScale = this.scale;
},
pinch : function(e, t) {
this.scale = e.scale * this.startScale;
t.style.webkitTransform = 'scale(' + this.scale + ')';
},
scope: {scale: 1}
});
What's wrong with my code ?