Enable smooth scrolling

This commit is contained in:
Malte Jürgens 2022-10-10 21:54:26 +02:00
parent dd2beed4eb
commit d184823ee9
No known key found for this signature in database
GPG Key ID: D29FBD5F93C0CFC3
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ DiscordPage::DiscordPage(QWidget *parent) : QWebEnginePage(parent) {
settings()->setAttribute(QWebEngineSettings::PlaybackRequiresUserGesture, settings()->setAttribute(QWebEngineSettings::PlaybackRequiresUserGesture,
false); false);
settings()->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, false); settings()->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, false);
settings()->setAttribute(QWebEngineSettings::ScrollAnimatorEnabled, true);
setUrl(QUrl("https://discord.com/app")); setUrl(QUrl("https://discord.com/app"));