public/javascripts/yui/dragdrop/dragdrop-debug.js
function(e) {
            //YAHOO.log("handlemousemove");

            var dc = this.dragCurrent;
            if (dc) {
                // YAHOO.log("no current drag obj");

                // var button = e.which || e.button;
                // YAHOO.log("which: " + e.which + ", button: "+ e.button);

                // check for IE mouseup outside of page boundary
                if (YAHOO.util.Event.isIE && !e.button) {
                    YAHOO.log("button failure", "info", "DragDropMgr");
                    this.stopEvent(e);
                    return this.handleMouseUp(e);
                } else {
                    if (e.clientX < 0 || e.clientY < 0) {
                        //This will stop the element from leaving the viewport in FF, Opera & Safari
                        //Not turned on yet
                        //YAHOO.log("Either clientX or clientY is negative, stop the event.", "info", "DragDropMgr");
                        //this.stopEvent(e);
                        //return false;
                    }
                }

                if (!this.dragThreshMet) {
                    var diffX = Math.abs(this.startX - YAHOO.util.Event.getPageX(e));
                    var diffY = Math.abs(this.startY - YAHOO.util.Event.getPageY(e));
                    // YAHOO.log("diffX: " + diffX + "diffY: " + diffY);
                    if (diffX > this.clickPixelThresh || 
                                diffY > this.clickPixelThresh) {
                        YAHOO.log("pixel threshold met", "info", "DragDropMgr");
                        this.startDrag(this.startX, this.startY);
                    }
                }

                if (this.dragThreshMet) {
                    if (dc && dc.events.b4Drag) {
                        dc.b4Drag(e);
                        dc.fireEvent('b4DragEvent', { e: e});
                    }
                    if (dc && dc.events.drag) {
                        dc.onDrag(e);
                        dc.fireEvent('dragEvent', { e: e});
                    }
                    if (dc) {
                        this.fireEvents(e, false);
                    }
                }

                this.stopEvent(e);
            }
        }
function(e) {
            //YAHOO.log("handlemousemove");

            var dc = this.dragCurrent;
            if (dc) {
                // YAHOO.log("no current drag obj");

                // var button = e.which || e.button;
                // YAHOO.log("which: " + e.which + ", button: "+ e.button);

                // check for IE mouseup outside of page boundary
                if (YAHOO.util.Event.isIE && !e.button) {
                    YAHOO.log("button failure", "info", "DragDropMgr");
                    this.stopEvent(e);
                    return this.handleMouseUp(e);
                } else {
                    if (e.clientX < 0 || e.clientY < 0) {
                        //This will stop the element from leaving the viewport in FF, Opera & Safari
                        //Not turned on yet
                        //YAHOO.log("Either clientX or clientY is negative, stop the event.", "info", "DragDropMgr");
                        //this.stopEvent(e);
                        //return false;
                    }
                }

                if (!this.dragThreshMet) {
                    var diffX = Math.abs(this.startX - YAHOO.util.Event.getPageX(e));
                    var diffY = Math.abs(this.startY - YAHOO.util.Event.getPageY(e));
                    // YAHOO.log("diffX: " + diffX + "diffY: " + diffY);
                    if (diffX > this.clickPixelThresh || 
                                diffY > this.clickPixelThresh) {
                        YAHOO.log("pixel threshold met", "info", "DragDropMgr");
                        this.startDrag(this.startX, this.startY);
                    }
                }

                if (this.dragThreshMet) {
                    if (dc && dc.events.b4Drag) {
                        dc.b4Drag(e);
                        dc.fireEvent('b4DragEvent', { e: e});
                    }
                    if (dc && dc.events.drag) {
                        dc.onDrag(e);
                        dc.fireEvent('dragEvent', { e: e});
                    }
                    if (dc) {
                        this.fireEvents(e, false);
                    }
                }

                this.stopEvent(e);
            }
        }
function ( e ) { //YAHOO.log("handlemousemove"); var dc = this . dragCurrent ; if ( dc ) { // YAHOO.log("no current drag obj"); // var button = e.which || e.button; // YAHOO.log("which: " + e.which + ", button: "+ e.button); // check for IE mouseup outside of page boundary if ( YAHOO . util . Event . isIE && ! e . button ) { YAHOO . log ( "button failure" , "info" , "DragDropMgr" ) ; this . stopEvent ( e ) ; return this . handleMouseUp ( e ) ; } else { if ( e . clientX < 0 || e . clientY < 0 ) { //This will stop the element from leaving the viewport in FF, Opera & Safari //Not turned on yet //YAHOO.log("Either clientX or clientY is negative, stop the event.", "info", "DragDropMgr"); //this.stopEvent(e); //return false; } } if ( ! this . dragThreshMet ) { var diffX = Math . abs ( this . startX - YAHOO . util . Event . getPageX ( e ) ) ; var diffY = Math . abs ( this . startY - YAHOO . util . Event . getPageY ( e ) ) ; // YAHOO.log("diffX: " + diffX + "diffY: " + diffY); if ( diffX > this . clickPixelThresh || diffY > this . clickPixelThresh ) { YAHOO . log ( "pixel threshold met" , "info" , "DragDropMgr" ) ; this . startDrag ( this . startX , this . startY ) ; } } if ( this . dragThreshMet ) { if ( dc && dc . events . b4Drag ) { dc . b4Drag ( e ) ; dc . fireEvent ( 'b4DragEvent' , { e : e } ) ; } if ( dc && dc . events . drag ) { dc . onDrag ( e ) ; dc . fireEvent ( 'dragEvent' , { e : e } ) ; } if ( dc ) { this . fireEvents ( e , false ) ; } } this . stopEvent ( e ) ; } }
Internal function to handle the mousemove event.  Will be invoked
from the context of the html element.

@TODO figure out what we can do about mouse events lost when the
user drags objects beyond the window boundary.  Currently we can
detect this in internet explorer by verifying that the mouse is
down during the mousemove event.  Firefox doesn't give us the
button state on the mousemove event.
@method handleMouseMove
@param {Event} e the event
@private
@static
Internal function to handle the mousemove event . Will be invoked from the context of the html element .