From cc78ba6f0c0150221422b9064bc575fcc3e63dda Mon Sep 17 00:00:00 2001 From: Comma Device Date: Fri, 19 Mar 2021 21:12:53 +0000 Subject: [PATCH] doesnt work --- selfdrive/ui/qt/offroad/onboarding.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/selfdrive/ui/qt/offroad/onboarding.cc b/selfdrive/ui/qt/offroad/onboarding.cc index ffa507afc8..06b1b51a81 100644 --- a/selfdrive/ui/qt/offroad/onboarding.cc +++ b/selfdrive/ui/qt/offroad/onboarding.cc @@ -86,7 +86,6 @@ QWidget* OnboardingWindow::terms_screen() { }); // TODO: tune the scrolling - auto sb = terms_text->verticalScrollBar(); QScrollerProperties sp; @@ -94,7 +93,6 @@ QWidget* OnboardingWindow::terms_screen() { 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);