Results 1 to 2 of 2

Thread: Position of cursor in Custom Drag and Drop in EXTJS 3.4

  1. #1
    Sencha User
    Join Date
    Feb 2014
    Posts
    2
    Vote Rating
    0
      0  

    Default Position of cursor in Custom Drag and Drop in EXTJS 3.4

    Hi,

    I am implemented custom drag and drop in my application with help of this link
    http://dev.sencha.com/deploy/ext-3.4...dropzones.html

    But I want my cursor pointer to be at same position from where I have dragged.

    IF you notice it will always be at top left corner of dragged image.

    Can anyone please help?

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Vote Rating
    255
      0  

    Default

    Hi,

    You'll need to override the alignElWithMouse method to start.
    http://docs.sencha.com/extjs/3.4.0/#...ignElWithMouse

    Though I suspect you'll need to also record in the beforedrag where the drag event started relative to the element being dragged so you can set your x/y offsets accordingly in your alignElWithMouse method.

Tags for this Thread

Posting Permissions

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