diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 1f3f79aff..ae5e0bee1 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -23,6 +23,7 @@ Added - New commands `:message-info`, `:message-error` and `:message-warning` to show messages in the statusbar, e.g. from an userscript. - There are now some example userscripts in `misc/userscripts`. - New command `:scroll-px` which replaces `:scroll` for pixel-exact scrolling. +- New setting `ui -> smooth-scrolling`. Changed ~~~~~~~ diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index dd7599db2..0d92f7d2c 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -40,6 +40,7 @@ |<>|Whether to expand each subframe to its contents. |<>|User stylesheet to use (absolute filename or CSS string). Will expand environment variables. |<>|Set the CSS media type. +|<>|Whether to enable smooth scrolling for webpages. |<>|Whether to remove finished downloads automatically. |<>|Whether to hide the statusbar unless a message is shown. |<>|The format to use for the window title. The following placeholders are defined: @@ -531,6 +532,17 @@ Set the CSS media type. Default: empty +[[ui-smooth-scrolling]] +=== smooth-scrolling +Whether to enable smooth scrolling for webpages. + +Valid values: + + * +true+ + * +false+ + +Default: +pass:[false]+ + [[ui-remove-finished-downloads]] === remove-finished-downloads Whether to remove finished downloads automatically. diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index 7df7ed9df..8e71cb465 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -276,6 +276,10 @@ def data(readonly=False): SettingValue(typ.String(none_ok=True), ''), "Set the CSS media type."), + ('smooth-scrolling', + SettingValue(typ.Bool(), 'false'), + "Whether to enable smooth scrolling for webpages."), + ('remove-finished-downloads', SettingValue(typ.Bool(), 'false'), "Whether to remove finished downloads automatically."), diff --git a/qutebrowser/config/websettings.py b/qutebrowser/config/websettings.py index 38c662066..d9ced2689 100644 --- a/qutebrowser/config/websettings.py +++ b/qutebrowser/config/websettings.py @@ -322,6 +322,8 @@ MAPPINGS = { 'css-media-type': NullStringSetter(getter=QWebSettings.cssMediaType, setter=QWebSettings.setCSSMediaType), + 'smooth-scrolling': + Attribute(QWebSettings.ScrollAnimatorEnabled), #'accelerated-compositing': # Attribute(QWebSettings.AcceleratedCompositingEnabled), #'tiled-backing-store':