Skip to content

Element.Events.mouseleave in IE7 #2221

Closed
ibolmo opened this Issue Jan 19, 2012 · 4 comments

3 participants

@ibolmo
MooTools member
ibolmo commented Jan 19, 2012

(from Lighthouse)

There is an issue when using onmouseleave events in IE. If the element has a child SELECT element, when opening this select in IE, if the mouse leaves the element but stays inside the SELECT dropdown (further down for example), the mouseleave event fires even though the mouse is still inside the element.

The problem does not occur on Firefox.

var $check = function(event){
  var related = event.relatedTarget;
  if (related == undefined) return false; // was 'return true'
  if (related === false) return false;
  return ($type(this) != 'document' && related != this && related.prefix != 'xul' && !this.hasChild(related));
};
@arian
MooTools member
arian commented Jan 19, 2012

don't we use the 'native' mouseenter / mouseleave now, if available, which IE supports since IE 5.5.

@ibolmo
MooTools member
ibolmo commented Jan 19, 2012

right, we need to verify the issue

@kentaromiura
MooTools member

IE7 is using the native version, and the native version fires as soon you hit the border of the select box, it needs further testing so moving this to 1.6

@ibolmo ibolmo modified the milestone: 1.5.1, 1.6 Mar 3, 2014
@ibolmo
MooTools member
ibolmo commented Jul 3, 2014

Closing due to pending deprecation of really oldIE

@ibolmo ibolmo closed this Jul 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.