Skip to content

Conversation

ploMP4
Copy link
Member

@ploMP4 ploMP4 commented Jul 23, 2025

This PR fixes the app-freezing issue that sometimes occurs. Turns out that the problem was way simpler than we initially thought. On each animation frame we send a FrameMsg that updates the slide which batches a FrameMsg along with another TickMsg , on each TickMsg since we also update the globalTimer we send another TickMsg and this keeps going until the app halts.

The fix is just to update both timers on the same TickMsg and send only a single one back to bubbletea's event loop so there is only a single TickMsg.

@ploMP4 ploMP4 requested a review from tharropoulos July 23, 2025 16:39
@ploMP4 ploMP4 self-assigned this Jul 23, 2025
)

if m.command != nil && m.command.IsShowing() {
fmt.Print("\x1b_Ga=d\x1b\\")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this remove images from the viewport?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants