event processor for onmousemove
if(this.isDragging && this.targetState == "Disabled"){ return; } dojo.dnd.Source.superclass.onMouseMove.call(this, e); var m = dojo.dnd.manager(); if(this.isDragging){ // calculate before/after var before = false; if(this.current){ if(!this.targetBox || this.targetAnchor != this.current){ this.targetBox = { xy: dojo.coords(this.current, true), w: this.current.offsetWidth, h: this.current.offsetHeight }; } if(this.horizontal){ before = (e.pageX - this.targetBox.xy.x) < (this.targetBox.w / 2); }else{ before = (e.pageY - this.targetBox.xy.y) < (this.targetBox.h / 2); } } if(this.current != this.targetAnchor || before != this.before){ this._markTargetAnchor(before); m.canDrop(!this.current || m.source != this || !(this.current.id in this.selection)); } }else{ if(this.mouseDown && this.isSource){ var nodes = this.getSelectedNodes(); if(nodes.length){ m.startDrag(this, nodes, this.copyState(dojo.dnd.getCopyKeyState(e))); } } }