Bug fix:
When cursor pass <code>#full_name_layer</code> with a high speed, <code>#full_name_layer</code> will resides in page Now it'll disappear. Signed-off-by: Edward Cheng <c4150221@gmail.com>
This commit is contained in:
parent
bd863f6a62
commit
8ba06fc545
@ -1223,13 +1223,23 @@ function PMA_showFullName($containerELem) {
|
||||
$('body').append('<div id="full_name_layer" class="hide"></div>');
|
||||
$('#full_name_layer').mouseleave(function() {
|
||||
/** mouseleave */
|
||||
$(this).addClass('hide');
|
||||
$(this).addClass('hide')
|
||||
.removeClass('hovering');
|
||||
}).mouseenter(function() {
|
||||
/** mouseenter */
|
||||
$(this).addClass('hovering');
|
||||
});
|
||||
$fullNameLayer = $('#full_name_layer');
|
||||
}
|
||||
$fullNameLayer.removeClass('hide');
|
||||
$fullNameLayer.css({left: thisOffset.left, top: thisOffset.top});
|
||||
$fullNameLayer.html($this.clone());
|
||||
setTimeout(function() {
|
||||
if(! $fullNameLayer.hasClass('hovering'))
|
||||
{
|
||||
$fullNameLayer.trigger('mouseleave');
|
||||
}
|
||||
}, 200);
|
||||
}
|
||||
});
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user