X-Git-Url: http://jaekl.net/gitweb/?p=quanweb.git;a=blobdiff_plain;f=js%2FToolTip.js;fp=js%2FToolTip.js;h=5e88238f91eaf13ba40d29c262d4ca47363fa3b2;hp=0311444416128ed589d57dc27f7449d8b686cd82;hb=222a53b5def154dcc59dbaad98404ea2930e8434;hpb=e2b95cefd1e34e652317fdf82595932c0bf0c6bb diff --git a/js/ToolTip.js b/js/ToolTip.js index 0311444..5e88238 100644 --- a/js/ToolTip.js +++ b/js/ToolTip.js @@ -46,10 +46,11 @@ var ToolTip = (function () { var deltaX = Math.abs(x - mousePos.x); var deltaY = Math.abs(y - mousePos.y); - - if ( deltaX > threshold - || deltaY > threshold ) + + if ( (deltaX > threshold) + || (deltaY > threshold) ) { + my.stopTooltipTimer(); my.hideDetails(); } }; @@ -104,7 +105,6 @@ var ToolTip = (function () { clearTimeout(timer); timer = undefined; - my.hideDetails(); }; // ===============