jquery document mouseleave firing late in ie
I wrote a small utility to help me with control of elements within the page for mouseover. One of the issues this was intended to fix is a rapidly moving mouse leaving the document window. In FireFox, Chrome, and Safari this works perfect, but in IE the event takes about a full second to fire. 

    var mouse = {
        mouseX: null,
        mouseY: null,
        mouseInWindow: true,
        init: function() {
            $(document).bind('mousemove', function(event) {
                mouse.mouseX = event.pageX;
                mouse.mouseY = event.pageY;
                mouse.mouseInWindow = true;
            });
            $(document).bind("mouseleave", function(event) {
                mouse.mouseInWindow = false;
            });
            $(document).bind("mouseenter", function(event) {
                mouse.mouseInWindow = true;
            });
        },
        isOver: function($element) {
            $elementPosition = $($element).offset();
            $elementWidth = $($element).width();
            $elementHeight = $($element).height();
            $returnValue = true;
            if (mouse.mouseX !== null) {
                if (mouse.mouseX < $elementPosition.left) { $returnValue = false; }
                if (mouse.mouseY < $elementPosition.top) { $returnValue = false; }
                if (mouse.mouseX > $elementPosition.left + $elementWidth) { $returnValue = false; }
                if (mouse.mouseY > $elementPosition.top + $elementHeight) { $returnValue = false; }
                if (!mouse.mouseInWindow) { $returnValue = false; }
            }
            return $returnValue;
        }
    }

So my animation completes with the mouse outside the document window, I check to see if the mouse is over the element, ie lies to me with an evil grin leaving the element open, and then it triggers the event that the mouse is outside the document.  Not sure if it is a delay or if ie is not firing events during a tween?  Any ideas?
jquery document mouseleave firing late in ie
===

I wrote a small utility to help me with control of elements within the page for mouseover. One of the issues this was intended to fix is a rapidly moving mouse leaving the document window. In FireFox, Chrome, and Safari this works perfect, but in IE the event takes about a full second to fire. 

    var mouse = {
        mouseX: null,
        mouseY: null,
        mouseInWindow: true,
        init: function() {
            $(document).bind('mousemove', function(event) {
                mouse.mouseX = event.pageX;
                mouse.mouseY = event.pageY;
                mouse.mouseInWindow = true;
            });
            $(document).bind("mouseleave", function(event) {
                mouse.mouseInWindow = false;
            });
            $(document).bind("mouseenter", function(event) {
                mouse.mouseInWindow = true;
            });
        },
        isOver: function($element) {
            $elementPosition = $($element).offset();
            $elementWidth = $($element).width();
            $elementHeight = $($element).height();
            $returnValue = true;
            if (mouse.mouseX !== null) {
                if (mouse.mouseX < $elementPosition.left) { $returnValue = false; }
                if (mouse.mouseY < $elementPosition.top) { $returnValue = false; }
                if (mouse.mouseX > $elementPosition.left + $elementWidth) { $returnValue = false; }
                if (mouse.mouseY > $elementPosition.top + $elementHeight) { $returnValue = false; }
                if (!mouse.mouseInWindow) { $returnValue = false; }
            }
            return $returnValue;
        }
    }

So my animation completes with the mouse outside the document window, I check to see if the mouse is over the element, ie lies to me with an evil grin leaving the element open, and then it triggers the event that the mouse is outside the document.  Not sure if it is a delay or if ie is not firing events during a tween?  Any ideas?