我使用的是带中滚轮的 USB 鼠标(型号为“trust”)。问题是,当我使用滚轮时,它会在按预期方向滚动之前向相反方向移动一点(我想这是一种动画,可以让移动感觉更“自然”,但非常烦人……)我检查了 xinput,找不到可以解决这个问题的参数:
xinput list
USB Optical Mouse id=19 [slave pointer (2)]
然后:
~ : xinput list-props 19
Device 'USB Optical Mouse':
Device Enabled (169): 1
Coordinate Transformation Matrix (171): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (305): 0
libinput Natural Scrolling Enabled Default (306): 0
libinput Scroll Methods Available (319): 0, 0, 1
libinput Scroll Method Enabled (320): 0, 0, 0
libinput Scroll Method Enabled Default (321): 0, 0, 0
libinput Button Scrolling Button (565): 2
libinput Button Scrolling Button Default (566): 2
libinput Middle Emulation Enabled (567): 0
libinput Middle Emulation Enabled Default (568): 0
libinput Accel Speed (322): -0.735294
libinput Accel Speed Default (323): 0.000000
libinput Accel Profiles Available (569): 1, 1
libinput Accel Profile Enabled (570): 1, 0
libinput Accel Profile Enabled Default (571): 1, 0
libinput Left Handed Enabled (324): 0
libinput Left Handed Enabled Default (325): 0
libinput Send Events Modes Available (290): 1, 0
libinput Send Events Mode Enabled (291): 0, 0
libinput Send Events Mode Enabled Default (292): 0, 0
Device Node (293): "/dev/input/event22"
Device Product ID (294): 7119, 5
libinput Drag Lock Buttons (307): <no items>
libinput Horizontal Scroll Enabled (308): 1
我尝试过,Accel Speed (322)
但归零只会将光标设置为最大速度,与滚轮无关。如何才能在滚动时禁用反方向的小跳跃,并且如果可能的话,平滑滚动效果?