EDIT & COMMENT Element.drag

master
Mike Sierra 2013-10-09 14:53:42 -04:00
parent 90a2c1bfc3
commit 6df0f0ecd5
1 changed files with 6 additions and 1 deletions

View File

@ -385,11 +385,16 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
return this.unmouseover(f_in).unmouseout(f_out);
};
var draggable = [];
// SIERRA unclear what _context_ refers to for starting, ending, moving the drag gesture.
// SIERRA Element.drag(): _x position of the mouse_: Where are the x/y values offset from?
// SIERRA Element.drag(): much of this member's doc appears to be duplicated for some reason.
// SIERRA Unclear about this sentence: _Additionally following drag events will be triggered: drag.start.<id> on start, drag.end.<id> on end and drag.move.<id> on every move._ Is there a global _drag_ object to which you can assign handlers keyed by an element's ID?
/*\
* Element.drag
[ method ]
**
* Adds event handlers for drag of the element.
* Adds event handlers for an element's drag gesture.
**
- onmove (function) handler for moving
- onstart (function) handler for drag start
- onend (function) handler for drag end