-
-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll support #161
base: main
Are you sure you want to change the base?
Scroll support #161
Conversation
…e shipped with RHEL/CentOS 7)
I have tried it with the following
I have found two issues: 1: [major] different behavior from up and down. When I maintain the thumbs button pressed and scroll down the current and the next two windows switch only (this should be avoided: my opinion is that at every scroll a "new" 2: [minor] I use KDE with effect to showing the app while I switch between them, this behavior is lost when I switch using my custom mouse combination and windows bring focus and became active only "immediately" My intent is to trigger the switch by pressing the thumb button and moving the wheel, next if I keep the thumbs pressed without moving the wheel I continue to maintain the app sequence on my screen to look at them and decide to continue scrolling up or down until my selection happens releasing everything (i.e. exactly as it happens when I press Should I play with Anyhow, I can confirm that before this pull request setting |
Thanks for testing this out. What you're looking for (to keep the ALT button pressed) is the app switching support PR. That should solve both of the issues that you describe. What it does is it modifies OnInterval to keep the first button in the sequence pressed (unless there is only 1 button in the sequence). The |
Wonderful! I have tested it, and I can confirm it works exactly as I expect, without changing anything in my current |
a062ed0
to
a77b328
Compare
actions are not working with config below devices = ({
name = "Wireless Mouse MX Master 3"
dpi = 1600
buttons = (
{
### Gesture Button
cid = 0xC3
action = {
type = "Gestures"
gestures = (
{
direction = "ScrollUp"
mode = "OnInterval"
interval = 1
threshold = 1
action = {
type = "Keypress"
keys = ("KEY_LEFT")
}
},
{
direction = "ScrollDown"
mode = "OnInterval"
interval = 1
threshold = 1
action = {
type = "Keypress"
keys = ("KEY_RIGHT")
}
},
)
}
},
)
}) |
actions work when devices = ({
name = "Wireless Mouse MX Master 3"
dpi = 1600
hiresscroll = {
hires = false
### invert = false
target = true
up = {
mode = "Axis"
axis = "REL_WHEEL"
axis_multiplier = +1.0
}
down = {
mode = "Axis"
axis = "REL_WHEEL"
axis_multiplier = -1.0
}
}
buttons = (
{
### Gesture Button
cid = 0xC3
action = {
type = "Gestures"
gestures = (
{
direction = "ScrollUp"
mode = "OnInterval"
interval = 1
threshold = 1
action = {
type = "Keypress"
keys = ("KEY_LEFT")
}
},
{
direction = "ScrollDown"
mode = "OnInterval"
interval = 1
threshold = 1
action = {
type = "Keypress"
keys = ("KEY_RIGHT")
}
},
)
}
},
)
}) |
Note: Also contains a fixed version of #157. Should probably reach a resolution on that before this one.
Note: Contains the following changes from #160, but modified to work with scroll support (since there were some merge conflicts with that):
This pull request allows for one to utilize the scroll wheel for gestures. Fixes #150. Has the same consequences as #160 because of the above changes.
Changes:
Known issues:
Sample config (enables gesture scroll support, and binds scroll up and down to switch tabs):