The plugin works by using standard DOM events, and simulating custom events to create a drag interaction. It simplifies a recurring pattern of event interaction that can be fairly complex to design in a consistent, cross-browser manner. The drag interaction, while simple in most basic form, gets quite complex when introduced with issues of distance, handles, text selection, proxy elements, click suppression, and dropping.
This plugin is focused on correctly simulating the drag events in a very usable way. This plugin does not add classnames, does not alter the position or appearance of any elements, and does not alter the DOM. This plugin only provides the essential callbacks at the correct points in the interaction model to enable developers to have complete control over the interactions that they create. This reduces the file size, eliminates dependencies, and increases performance.
Install-Package jquery.event.drag -Version 2.2.0
dotnet add package jquery.event.drag --version 2.2.0
<PackageReference Include="jquery.event.drag" Version="2.2.0" />
paket add jquery.event.drag --version 2.2.0
- jQuery (>= 1.7.0)
This package is not used by any popular GitHub repositories.