Results 1 to 2 of 2

Thread: Dragging, rotating/pinching objects

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Vote Rating

    Default Dragging, rotating/pinching objects

    Hello, does Sencha include some features to implement pinch (for size manipulation)/rotate gestures of objects? I've seen a link to some pinch example in an old thread but it's dead.

    I'm especially looking to do something where an object for example contains a button which can be activated by touch, but if the button is activated as part of a gesture the even won't fire.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    For pinch... you can add a listener to an Ext.Element instance:

    var el = Ext.get('someId'); //or cmp.el
    el.on('pinch', function(e, n) {});
    Dragging, there is an example that comes in the examples folder of the downloaded zip. It's actually really easy.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts