This Javascript package implements drag-n-drop functionality in a browser.
Supports:
- Moving an element horizontally, vertically and in both directions
- Snap to grid functionality
- Limitation of moving distance
- Registering of user-defined function on start, move and stop
Tested in the following browsers: IE 6.0, FF 17, Chrome 22, Safari 5.1.1
Dragdrop.js requires Event.js package, which can be acquired at the following links:
Github - https://github.com/mark-rolich/Event.js
JS Classes - http://www.jsclasses.org/package/212-JavaScript-Handle-events-in-a-browser-independent-manner.html
Copyright (C) 2012 Mark Rolich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. |