Skip to content

Commit

Permalink
bar.js: fixed multiple panels with tracy-focused class [Closes #316]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 20, 2018
1 parent 31e8c93 commit 74740f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Tracy/assets/Bar/bar.js
Expand Up @@ -85,6 +85,9 @@
} else {
clearTimeout(elem.Tracy.displayTimeout);
elem.Tracy.displayTimeout = setTimeout(() => {
for (var id in Debug.panels) {
Debug.panels[id].elem.classList.remove(Panel.FOCUSED);
}
elem.classList.add(Panel.FOCUSED);
elem.style.zIndex = Tracy.panelZIndex + Panel.zIndexCounter++;
if (callback) {
Expand Down

0 comments on commit 74740f8

Please sign in to comment.