summaryrefslogtreecommitdiff
path: root/internal/tui/flamegraph/model.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-05 22:50:32 +0200
committerPaul Buetow <paul@buetow.org>2026-03-05 22:50:32 +0200
commit4d69b8bf11b563d8ec6693447c09f35dec13b148 (patch)
tree4b7130a72318c5caf9fed68abebb27a7c09d6f3c /internal/tui/flamegraph/model.go
parent476cfb1aa569b42e7bab6cbfd5e548c9e85ee07c (diff)
task 364: animate flamegraph zoom transitions
Diffstat (limited to 'internal/tui/flamegraph/model.go')
-rw-r--r--internal/tui/flamegraph/model.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tui/flamegraph/model.go b/internal/tui/flamegraph/model.go
index c1693b1..8433fea 100644
--- a/internal/tui/flamegraph/model.go
+++ b/internal/tui/flamegraph/model.go
@@ -283,7 +283,7 @@ func (m Model) Paused() bool {
func (m *Model) SetViewport(width, height int) {
m.width = width
m.height = height
- m.rebuildFrames(false)
+ m.rebuildFrames(true)
}
// SetDarkMode sets the active color theme mode.
@@ -331,7 +331,7 @@ func (m *Model) zoomIn() {
m.zoomRoot = target
m.zoomPath = selectedPath
m.selectedIdx = 0
- m.rebuildFrames(false)
+ m.rebuildFrames(true)
}
func (m *Model) zoomUndo() {
@@ -347,7 +347,7 @@ func (m *Model) zoomUndo() {
m.zoomRoot = findNodeByPath(m.snapshot, m.zoomPath)
}
m.selectedIdx = last.previousSelectedIdx
- m.rebuildFrames(false)
+ m.rebuildFrames(true)
}
func (m *Model) zoomReset() {