ui: ignore smooth scroll settings by default

This commit is contained in:
Peter F. Patel-Schneider 2023-01-31 09:30:13 -05:00
parent ff24947321
commit 8c803b415e
2 changed files with 8 additions and 2 deletions

View File

@ -138,11 +138,11 @@ for the step-by-step procedure for manual installation.
Running other programs that modify these settings, such as logiops, Running other programs that modify these settings, such as logiops,
will likely result in unexpected device behavior. will likely result in unexpected device behavior.
- The Linux HID++ driver modifies the setting Scroll Wheel Resolution to - The Linux HID++ driver modifies the Scroll Wheel Resolution setting to
implement smooth scrolling. If Solaar later changes this setting scrolling implement smooth scrolling. If Solaar later changes this setting scrolling
can be either very fast or very slow. To fix this problem can be either very fast or very slow. To fix this problem
click on the icon at the right edge of the setting to set it to click on the icon at the right edge of the setting to set it to
"Ignore this setting". "Ignore this setting", which is the default for new devices.
The mouse has to be reset (e.g., by turning it off and on again) before this fix will take effect. The mouse has to be reset (e.g., by turning it off and on again) before this fix will take effect.
- The driver also sets the scrolling direction to its normal setting when implementing smooth scrolling. - The driver also sets the scrolling direction to its normal setting when implementing smooth scrolling.

View File

@ -112,6 +112,12 @@ def _device_entry_from_config_dict(data, discard_derived_properties):
data.pop('mouse-gestures', None) data.pop('mouse-gestures', None)
# remove any string entries (from bad conversions) # remove any string entries (from bad conversions)
data['divert-keys'] = {k: v for k, v in divert.items() if isinstance(k, int)} data['divert-keys'] = {k: v for k, v in divert.items() if isinstance(k, int)}
if data.get('_sensitive', None) is None: # make scroll wheel settings default to ignore
data['_sensitive'] = {
'hires-smooth-resolution': 'ignore',
'hires-smooth-invert': 'ignore',
'hires-scroll-mode': 'ignore'
}
if discard_derived_properties: if discard_derived_properties:
data.pop('_absent', None) data.pop('_absent', None)
data.pop('_battery', None) data.pop('_battery', None)