an object which makes a node follow the mouse, or touch-drag on touch devices. Used as a default mover, and as a base class for custom movers.
(node,e,host);
Parameter | Type | Description |
---|---|---|
node | Node |
a node (or node's id) to be moved |
e | Event |
a mouse event, which started the move; only pageX and pageY properties are used |
host | Object | Optional
object which implements the functionality of the move, and defines proper events (onMoveStart and onMoveStop) |
See the dojo/dnd/Mover reference documentation for more information.
destroy
()
Defined by dojo/dnd/Mover
stops the move, deletes all references, so the object can be garbage-collected
emit
(type,event)
Defined by dojo/Evented
Parameter | Type | Description |
---|---|---|
type | undefined | |
event | undefined |
Returns: undefined
on
(type,listener)
Defined by dojo/Evented
Parameter | Type | Description |
---|---|---|
type | undefined | |
listener | undefined |
Returns: undefined
onFirstMove
(e)
Defined by: dojo/dnd/Mover
makes the node absolute; it is meant to be called only once. relative and absolutely positioned nodes are assumed to use pixel units
Parameter | Type | Description |
---|---|---|
e | undefined |
onMouseMove
(e)
Defined by: dojo/dnd/Mover
event processor for onmousemove/ontouchmove
Parameter | Type | Description |
---|---|---|
e | Event |
mouse/touch event |
onMouseUp
(e)
Defined by: dojo/dnd/Mover
Parameter | Type | Description |
---|---|---|
e | undefined |
© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/dnd/Mover.html