mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
opt: distinguish between vertical and horizontal roller rolling
This commit is contained in:
parent
c53872f73b
commit
3bfd64a881
1 changed files with 3 additions and 3 deletions
6
maomao.c
6
maomao.c
|
|
@ -1839,10 +1839,10 @@ axisnotify(struct wl_listener *listener, void *data) {
|
||||||
// 获取当前按键的mask,比如alt+super或者alt+ctrl
|
// 获取当前按键的mask,比如alt+super或者alt+ctrl
|
||||||
mods = keyboard ? wlr_keyboard_get_modifiers(keyboard) : 0;
|
mods = keyboard ? wlr_keyboard_get_modifiers(keyboard) : 0;
|
||||||
|
|
||||||
// if (event->orientation == WLR_AXIS_ORIENTATION_VERTICAL)
|
if (event->orientation == WL_POINTER_AXIS_VERTICAL_SCROLL)
|
||||||
adir = event->delta > 0 ? AxisDown : AxisUp;
|
adir = event->delta > 0 ? AxisDown : AxisUp;
|
||||||
// else
|
else
|
||||||
// adir = event->delta > 0 ? AxisRight : AxisLeft;
|
adir = event->delta > 0 ? AxisRight : AxisLeft;
|
||||||
|
|
||||||
for (ji = 0; ji < config.axis_bindings_count; ji++) {
|
for (ji = 0; ji < config.axis_bindings_count; ji++) {
|
||||||
if (config.axis_bindings_count < 1)
|
if (config.axis_bindings_count < 1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue