Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

$.event.special.drag 1.4


Changes in Version 1.4, Released 2009-01-26

- Fixed a mistake where the "which" property was not correctly checked.

- Changed the initial test for checking if a drag is already underway (within
the shared handler) to an internal property instead of checking for the document

--------------------------------------------------------------------------------

Changes in Version 1.3, Released 2009-01-26

- Now Compatable with jQuery 1.3.x and jQuery 1.2.x

- Fixed a problem with the return value of event handlers. Now use the property
"event.result" instead of the (obsolete) return value of "jQuery.event.handle"

- Fixed the logic for determining the proxy element returned from "dragstart",
The document was being set as the proxy when dragstart returned undefined, and
this caused an error in the offset method in jQuery 1.3

- Added "document.selection.empty()" to the private static "selectable" function
Thanks José Mata.

- Added a "which" property to the "jQuery.event.special.drag" object, which
defines the mouse button to "accept" on mousedown to initialize draggging. The
default value is "1" (left mouse button), this attribute is customizable through
the "bind" method using the optional "data" argument.