mirror of
https://github.com/taroved/pol
synced 2025-05-28 03:50:08 -07:00
new hover logic fix
This commit is contained in:
parent
3b440fd70e
commit
964b3e70d2
@ -351,9 +351,9 @@ function onIframeElementHover(event, p1, p2, p3) {
|
||||
if (!currentItem)
|
||||
return;
|
||||
|
||||
if ($(this).prop("tagName")) // is document element
|
||||
if ($(this).prop("tagName")) // is not document object
|
||||
if (currentItem.state == STATE_SELECTING)
|
||||
if (event.type == 'mouseenter') {
|
||||
if (event.type == 'mouseenter' && $(this).attr("tag-id")) {
|
||||
// clear all hover styles
|
||||
styleTool.unstyleAll('hover');
|
||||
styleTool.style(this, 'hover');
|
||||
@ -365,7 +365,7 @@ function onIframeElementHover(event, p1, p2, p3) {
|
||||
var element = this;
|
||||
while (element) {
|
||||
element = element.parentNode;
|
||||
if ($(element).prop("tagName")) {
|
||||
if ($(element).attr("tag-id")) {
|
||||
styleTool.style(element, 'hover');
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user