Skip to content

Commit

Permalink
fix for issue #199
Browse files Browse the repository at this point in the history
  • Loading branch information
okwme committed Mar 14, 2016
1 parent 880e852 commit 826a340
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions js/jquery.mapael.js
Original file line number Diff line number Diff line change
Expand Up @@ -1743,15 +1743,19 @@
var self = this;
var $mapElem = {};
var $textElem = {};
var hoverTO = 0;
var mouseoverTimeout = 0;
var mouseoutTimeout = 0;
var overBehaviour = function () {
hoverTO = setTimeout(function () {
clearTimeout(mouseoutTimeout);
mouseoverTimeout = setTimeout(function () {
self.elemHover(mapElem, textElem);
}, 120);
};
var outBehaviour = function () {
clearTimeout(hoverTO);
self.elemOut(mapElem, textElem);
clearTimeout(mouseoverTimeout);
mouseoutTimeout = setTimeout(function(){
self.elemOut(mapElem, textElem);
}, 120);
};

$mapElem = $(mapElem.node);
Expand Down

0 comments on commit 826a340

Please sign in to comment.