Image panning in sencha touch 2

Posted by MattD on Stack Overflow See other posts from Stack Overflow or by MattD
Published on 2012-09-02T21:34:05Z Indexed on 2012/09/02 21:38 UTC
Read the original article Hit count: 278

Filed under:
|
|

I'm trying to have show a large image that the user can pan around (so scroll vertically & horizontally). But I can't get the image to scroll. This is what I have:

Ext.define('myapp.view.image.Floorplan', {

extend: 'Ext.Container',    
requires: 'Ext.Img',
xtype: 'floorplan',

config: {

    title: 'Floorplan',
    iconCls: 'locate',
    items: [
      {
        xtype: 'image',    
        scrollable: true,
        src: './resources/images/floorplan.png',
        height: 1570,
        width: 1047
      }
    ]
}

});

How can I make the image scrollable?

Thanks Matt

© Stack Overflow or respective owner

Related posts about image

Related posts about scrolling