remove logging to fix imageHover
This commit is contained in:
parent
4b59951d0e
commit
01b26a08c7
@ -542,7 +542,6 @@
|
||||
imgHeight = img.offsetHeight;
|
||||
top = clientY + imageHover.offset.y;
|
||||
bot = top + imgHeight;
|
||||
log(bot, imageHover.winHeight);
|
||||
img.style.top = imageHover.winHeight < imgHeight || top < 0 ? '0px' : bot > imageHover.winHeight ? imageHover.winHeight - imgHeight + 'px' : top + 'px';
|
||||
return img.style.left = clientX + imageHover.offset.x;
|
||||
},
|
||||
|
||||
@ -373,7 +373,6 @@ imageHover =
|
||||
|
||||
top = clientY + imageHover.offset.y
|
||||
bot = top + imgHeight
|
||||
log bot, imageHover.winHeight
|
||||
img.style.top =
|
||||
if imageHover.winHeight < imgHeight or top < 0
|
||||
'0px'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user