Skip to content
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

Vertical scrolling reverted for each logged User #43

Open
cptvita opened this issue Feb 7, 2022 · 3 comments
Open

Vertical scrolling reverted for each logged User #43

cptvita opened this issue Feb 7, 2022 · 3 comments

Comments

@cptvita
Copy link

cptvita commented Feb 7, 2022

When logged into two Users at the same time, the vertical switch toggle gets applied twice.
If logged only in one account where UnnaturalScrollWheels (USW) is running and vertical scrolling ticked, it works as expected. But when logged into another account with running USW with the same setting, the vertical scrolling is reverted twice, thus not working as one would expect.

Monterey 12.1 (21C52)

@cptvita cptvita changed the title Vertical scrolling toggled for each logged User Vertical scrolling reverted for each logged User Feb 7, 2022
@ther0n
Copy link
Owner

ther0n commented Mar 13, 2022

Are both users logged in at the same time? I only have my own personal account on my computer so it never really occure. Kinda weird that another user on the computer gets access to the input events of another user. I'm not sure how I'd be able to separate each user because if both users are logged in the app is running twice and it'd some how have to know the settings of the other user and counter act them or leave them the same. Settings for the app are stored in a plist file for that user and I sure hope one user can't access another users files without root...

@danielcooperxyz
Copy link

Not sure if this is related but it sounds similar at least.

I've noticed this also seems to happen when you lock and unlock. Rebooting seems to fix the scrolling until you lock again.

@AegisVP
Copy link

AegisVP commented Oct 17, 2023

I can confirm that as well. I have two users on my mac (both for me, but I had to do it like that for different settings and authorisations to work)
If I'm logged only to one (either one), the scrolling reversal works fine.
If I'm logged into both users (both have vertical scrolling reversal enabled), then I get regular scrolling behaviour. If I disable "invert vertical scrolling" on the active user, then I get inverted behaviour...
If I disable it on the second user as well, then back to normal (basic) behaviour. And both users experience that same behaviour at the same time.

I would assume the program keeps running under both users' credentials, each one reads the events and each one inverts it (effectively canceling out each other). You could add an check if the user is actually logged in (and not locked), then intercept the events. Otherwise, do nothing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants