Opened 7 years ago

Closed 7 years ago

#4380 closed bug (fixed)

draggable start callback returns undefined ui.offset and ui.position

Reported by: DRHansen Owned by:
Priority: major Milestone: 1.8
Component: ui.draggable Version: 1.7.1
Keywords: start ui offset position Cc: drhansen@…
Blocked by: Blocking:

Description

this.position and this.positionAbs are not set before calling this._trigger("start", event) in _mouseStart:

If they are set by adding:

  // 2009-03-20 14:14:12 DRH
  //Compute the helpers position
  this.position = this._generatePosition(event);
  this.positionAbs = this._convertPositionTo("absolute");

just before:

  //Call plugins and callbacks
  this._trigger("start", event);

proper values are available for _uiHash() when it creates the ui object in _trigger()

Change History (2)

comment:1 Changed 7 years ago by scottgonzalez

  • Milestone changed from TBD to 1.8

comment:2 Changed 7 years ago by paul

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in #3106.

Note: See TracTickets for help on using tickets.