Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5622 (closed defect: untested)

Opened 2 years ago

Last modified 2 years ago

[PATCH] dragdrop.js - reinitialize deltea when a drag starts

Reported by: kevin@xemus.com Assigned to: thomas@fesch.at
Priority: normal Milestone:
Component: script.aculo.us Version:
Severity: normal Keywords: drag drop delta position
Cc:

Description

When and element changes position after the Draggable is created, and revert is true, the element moves back to the original location at the time the Draggable is created.

Therefore, on initDrag, reinitialize delta:

this.delta = this.currentDelta();

Attachments

dragdrop.js.patch (60.9 kB) - added by kevin@xemus.com on 07/06/06 10:46:35.

Change History

07/06/06 10:46:35 changed by kevin@xemus.com

  • attachment dragdrop.js.patch added.

09/13/06 12:33:37 changed by madrobby

  • status changed from new to closed.
  • resolution set to untested.

There should be a dedicated functional test for this.