I'm trying to build a zoomable panel in using Sencha Touch 2, something on the lines of this However, after I apply a transform scale, like (assuming the "mapcontainer" is the element I need to pinch-zoom):
Ext.getCmp('mapcontainer').setStyle({
'transform': 'scale(2)',
'-ms-transform': 'scale(2)',
'-webkit-transform':'scale(2)'
});
and dragstart, the scale on the element is reset to 1.
As more information, I've tried returning false on all other events, including dragstart. But it does not seem to preserve the scale.
Any ideas why?