This project is archived and is in readonly mode.

#602 ✓resolved
Xandros

Add event reference to Drag.start/drag events

Reported by Xandros | February 25th, 2009 @ 06:49 PM | in 2.0 (closed)

When using Drag, it's very hard to access or test original event properties (target, mouse buttons, keyboard keys, ...) inside the called event handlers. It would be nice to enhance this by passing not only the dragged element but also a reference to the original event object.


// in Drag.start
this.fireEvent('beforeStart', [this.element, event]);

// in Drag.drag
this.fireEvent('drag', [this.element, event]);

// same for others (stop, cancel) ...

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages