From 8fbe96af45723072699bd0345e170ae197043753 Mon Sep 17 00:00:00 2001 From: MacDue Date: Tue, 8 Mar 2022 21:51:59 +0000 Subject: [PATCH] LibVT: Use coarse scrolling animation in TerminalWidget The smooth scrolling looks slightly off in the terminal as the scrollbar animation lasts longer than the actual scroll. This behaviour is also consistent with other terminal emulators. --- Userland/Libraries/LibVT/TerminalWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibVT/TerminalWidget.cpp b/Userland/Libraries/LibVT/TerminalWidget.cpp index 57438b09c1..2068a40256 100644 --- a/Userland/Libraries/LibVT/TerminalWidget.cpp +++ b/Userland/Libraries/LibVT/TerminalWidget.cpp @@ -90,6 +90,7 @@ TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy) m_auto_scroll_timer = add(); m_scrollbar = add(Orientation::Vertical); + m_scrollbar->set_scroll_animation(GUI::Scrollbar::Animation::CoarseScroll); m_scrollbar->set_relative_rect(0, 0, 16, 0); m_scrollbar->on_change = [this](int) { update();