PDA

View Full Version : Pinch conflict



nianzu
11 Nov 2010, 5:46 AM
Hi,


i am currently trying to zoom in (while using pinch)
but each time i am pinching, the function detects it as a scroll (vertical)

realy hope there is a way to fix this >.<
all help is appreciated:)

code


Ext.fly('credit').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}
});


TabPanel


items: [
{
iconCls: 'bookmarks',
title: 'Test',
scroll: 'vertical',
id: 'credit',
layout: 'fit'
}],

hitman01
26 Nov 2010, 9:44 AM
I got the same problem. I get pinch confused with scrolling and swiping in the carousel.