mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#930
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/378
Author: @tony--
Created: 12/11/2019
Status: ❌ Closed
Base:
master← Head:issue377📝 Commits (2)
25df627Throttle resize handling. Fixes #377f1d31d3Change throttle interval and fix style per PR feedback📊 Changes
1 file changed (+12 additions, -2 deletions)
View changed files
📝
application.go(+12 -2)📄 Description
This fixes #377
Sorry for any obvious mistakes; I am a golang novice.
I read over the contribution guidelines and tried to match the style.
I don't believe this is adding significant maintenance overhead.
The objective is to add some throttling to the resize handling so that the screen does not flash on Windows. I fiddled with the throttling a bit and 200ms seems like the sweet spot between too low (resulting in allowing some flashing) and too high (too slow resize redraw makes it seem laggy). Here is capture of the post-fix behavior:

Compare with the capture of before-fix behavior:

Thanks in advance for taking the time to review!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.