Functiondojox.gfx.Moveable.onMove

dojo.require("dojox.gfx.Moveable");
defined in dojox/gfx/Moveable.js

called during every move notification, should actually move the node, can be overwritten.

Usage

function (/*dojox.gfx.Mover*/ mover, /*Object*/ shift) (view source)
parametertypedescription
moverdojox.gfx.Moveran object, which makes a shape follow the mouse, used as a default mover, and as a base class for custom movers
fieldtypedescription
.destroyFunctionstops the move, deletes all references, so the object can be garbage-collected
.events 
.hostObjectOptional. object which implements the functionality of the move, and defines proper events (onMoveStart and onMoveStop)
.lastX 
.lastY 
.onFirstMoveFunctionit is meant to be called only once
.onMouseMoveFunctionevent processor for onmousemove
.shapedojox.gfx.Shapea shape object to be moved
shiftObject