ui: ignore smooth scroll settings by default
This commit is contained in:
parent
ff24947321
commit
8c803b415e
|
@ -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.
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue