Make sure that mousing over Chrome "internal div" doesn't trigger a mouseleave. Fixes #8209.
Follow up to 4a828c93d4
which was stupid and got reversed.
This commit is contained in:
parent
944e0e6498
commit
b46dff39c3
1 changed files with 6 additions and 0 deletions
|
@ -653,6 +653,12 @@ var withinElement = function( event ) {
|
|||
// Firefox sometimes assigns relatedTarget a XUL element
|
||||
// which we cannot access the parentNode property of
|
||||
try {
|
||||
|
||||
// Chrome does something similar, the parentNode property
|
||||
// can be accessed but is null.
|
||||
if ( parent !== document && !parent.parentNode ) {
|
||||
return;
|
||||
}
|
||||
// Traverse up the tree
|
||||
while ( parent && parent !== this ) {
|
||||
parent = parent.parentNode;
|
||||
|
|
Loading…
Reference in a new issue