Results 1 to 2 of 2

Thread: Dragging, rotating/pinching objects

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

    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
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

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

    Code:
    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! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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