Don't use scroll animations on macos by default, it where hdpi scroll is most likely to be used

This commit is contained in:
Luis Ángel San Martín Rodríguez
2025-01-06 10:24:16 +01:00
parent 1cd8635808
commit 31971c2348
4 changed files with 22 additions and 2 deletions

View File

@ -286,7 +286,13 @@ void OptionsDialog::restoreOptions(QSettings *settings)
doNotTurnPageOnScroll->setChecked(settings->value(DO_NOT_TURN_PAGE_ON_SCROLL, false).toBool());
useSingleScrollStepToTurnPage->setChecked(settings->value(USE_SINGLE_SCROLL_STEP_TO_TURN_PAGE, false).toBool());
disableScrollAnimations->setChecked(settings->value(DISABLE_SCROLL_ANIMATION, false).toBool());
#ifdef Q_OS_MACOS
auto defaultDisableScrollAnimationsValue = true;
#else
auto defaultDisableScrollAnimationsValue = false;
#endif
disableScrollAnimations->setChecked(settings->value(DISABLE_SCROLL_ANIMATION, defaultDisableScrollAnimationsValue).toBool());
}
void OptionsDialog::updateColor(const QColor &color)