Skip to content

Commit f905d90

Browse files
committed
skip goroutine preview tooltip in tree nav
1 parent eb1ed5c commit f905d90

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/ui/StackTraceApp.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3808,22 +3808,18 @@ export class StackgazerApp {
38083808
this.centerAncestryTreeOnNode(node.data.goroutine.id);
38093809
});
38103810

3811-
g.addEventListener('mouseenter', e => {
3811+
g.addEventListener('mouseenter', () => {
38123812
// Add subtle hover effect
38133813
if (!isTarget) {
38143814
rect.setAttribute('fill', 'var(--bg-secondary, #555)');
38153815
}
3816-
this.showGoroutinePreviewTooltip(node.data.goroutine.id, e as MouseEvent);
3816+
// Note: No tooltip in ancestor view for cleaner experience
38173817
});
38183818
g.addEventListener('mouseleave', () => {
38193819
// Remove hover effect
38203820
if (!isTarget) {
38213821
rect.setAttribute('fill', 'var(--bg-tertiary, #444)');
38223822
}
3823-
this.hideTooltip();
3824-
});
3825-
g.addEventListener('mousemove', e => {
3826-
this.handleTooltipMouseMove(e as MouseEvent);
38273823
});
38283824

38293825
contentGroup.appendChild(g);
@@ -4080,8 +4076,8 @@ export class StackgazerApp {
40804076
const targetX = (targetNode.y ?? 0) - minY;
40814077
const targetY = (targetNode.x ?? 0) - minX;
40824078

4083-
// Start with a zoomed-in view focused on the target (1.5x zoom)
4084-
const scale = 1.5;
4079+
// Start with a zoomed-out view focused on the target (0.8x zoom)
4080+
const scale = 0.8;
40854081

40864082
// Calculate translation to center target node at the zoomed scale
40874083
const translateX = containerWidth / 2 - targetX * scale;

0 commit comments

Comments
 (0)