doesnt work

pull/20392/head
Comma Device 4 years ago
parent 6c79767832
commit cc78ba6f0c
  1. 2
      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);

Loading…
Cancel
Save