mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
disable timed display refresh while scrolling
This commit is contained in:
7
grid.go
7
grid.go
@@ -62,8 +62,11 @@ func ExpandView(c *container.Container) {
|
||||
}
|
||||
|
||||
func RefreshDisplay() {
|
||||
needsClear := cursor.RefreshContainers()
|
||||
RedrawRows(needsClear)
|
||||
// skip display refresh during scroll
|
||||
if !cursor.isScrolling {
|
||||
needsClear := cursor.RefreshContainers()
|
||||
RedrawRows(needsClear)
|
||||
}
|
||||
}
|
||||
|
||||
func Display() bool {
|
||||
|
||||
Reference in New Issue
Block a user