Skip to content

Commit 826a340

Browse files
committed
fix for issue #199
1 parent 880e852 commit 826a340

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

js/jquery.mapael.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,15 +1743,19 @@
17431743
var self = this;
17441744
var $mapElem = {};
17451745
var $textElem = {};
1746-
var hoverTO = 0;
1746+
var mouseoverTimeout = 0;
1747+
var mouseoutTimeout = 0;
17471748
var overBehaviour = function () {
1748-
hoverTO = setTimeout(function () {
1749+
clearTimeout(mouseoutTimeout);
1750+
mouseoverTimeout = setTimeout(function () {
17491751
self.elemHover(mapElem, textElem);
17501752
}, 120);
17511753
};
17521754
var outBehaviour = function () {
1753-
clearTimeout(hoverTO);
1754-
self.elemOut(mapElem, textElem);
1755+
clearTimeout(mouseoverTimeout);
1756+
mouseoutTimeout = setTimeout(function(){
1757+
self.elemOut(mapElem, textElem);
1758+
}, 120);
17551759
};
17561760

17571761
$mapElem = $(mapElem.node);

0 commit comments

Comments
 (0)