From 6c79767832e0de9a4a7ba03b3bba201c04586a52 Mon Sep 17 00:00:00 2001 From: Comma Device Date: Fri, 19 Mar 2021 20:45:55 +0000 Subject: [PATCH] nothing --- selfdrive/ui/qt/offroad/onboarding.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/selfdrive/ui/qt/offroad/onboarding.cc b/selfdrive/ui/qt/offroad/onboarding.cc index 65e8e45f6f..ffa507afc8 100644 --- a/selfdrive/ui/qt/offroad/onboarding.cc +++ b/selfdrive/ui/qt/offroad/onboarding.cc @@ -91,11 +91,11 @@ QWidget* OnboardingWindow::terms_screen() { QScrollerProperties sp; sp.setScrollMetric(QScrollerProperties::DragStartDistance, 0.001); - sp.setScrollMetric(QScrollerProperties::DragVelocitySmoothingFactor, 0.5); - /* - sp.setScrollMetric(QScrollerProperties::ScrollingCurve, QEasingCurve::Linear ); sp.setScrollMetric(QScrollerProperties::DecelerationFactor, 0.4); - */ + sp.setScrollMetric(QScrollerProperties::DragVelocitySmoothingFactor, 0.5); + sp.setScrollMetric(QScrollerProperties::MaximumVelocity, 1.0); + sp.setScrollMetric(QScrollerProperties::SnapPositionRatio, 0.0); + scroller = QScroller::scroller(terms_text); scroller->setScrollerProperties(sp);