Results 1 to 2 of 2

Thread: Drag and Drop example does not work

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1278 in a recent build.
  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    66
    Vote Rating
    0
      0  

    Default Drag and Drop example does not work

    The drag and drop example attached with PR3 (even PR1) does not work. Following is the error

    }
    this.mgr.on({

    sencha-touch-all-debug-w-comments.js:48102 Uncaught TypeError: Cannot call method 'on' of undefined



    dragstart: this.onDragStart,
    scope: this
    });
    this.disabled = false;


    Error is on 48102 (sencha-touch-all-debug-w-comments.js)


  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,699
    Vote Rating
    1279
      0  

    Default

    I reported this as a bug. I have done this and it works in an app I am building:

    Code:
            Ext.create('Ext.util.Draggable', {
                element : el
            }, {
                revert : true
            });
    constraints are off but I can drag it around with no errors.
    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
  •