diff --git a/src/Tracy/assets/Bar/bar.js b/src/Tracy/assets/Bar/bar.js index 7a5b00e19..403bf7f4f 100755 --- a/src/Tracy/assets/Bar/bar.js +++ b/src/Tracy/assets/Bar/bar.js @@ -41,15 +41,22 @@ handles: elem.querySelectorAll('h1'), start: function() { _this.toFloat(); + _this.focus(); } }); - elem.addEventListener('mouseover', function(e) { + elem.addEventListener('mousedown', function(e) { if (isTargetChanged(e.relatedTarget, this)) { _this.focus(); } }); + elem.addEventListener('mouseover', function(e) { + if (isTargetChanged(e.relatedTarget, this)) { + clearTimeout(elem.Tracy.displayTimeout); + } + }); + elem.addEventListener('mouseout', function(e) { if (isTargetChanged(e.relatedTarget, this)) { _this.blur();