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

Not setting property isDirectionInvertedFromDevice #90

Open
Tom-Evers opened this issue Jul 2, 2024 · 1 comment
Open

Not setting property isDirectionInvertedFromDevice #90

Tom-Evers opened this issue Jul 2, 2024 · 1 comment

Comments

@Tom-Evers
Copy link

It seems that inverting the scroll direction doesn't properly set the property isDirectionInvertedFromDevice for the scrolling event.
I think it used to, but I don't know when exactly it broke. My guess is it's due to an OS update (currently running Sonoma 14.5).

Some context:
I'm creating an application that has some elements that need to ignore natural scrolling, but as it is now I can't distinguish between my naturally scrolling trackpad and my "unnaturally" scrolling scroll wheel. This used to work:

@implementation MyOwnNSView

- (void)scrollWheel:(NSEvent*)event {
    const bool natural = [event isDirectionInvertedFromDevice];
    ...
}

@end
@Tom-Evers
Copy link
Author

This should probably go into the scroll interceptor

If vertical "unnatural" is turned on but horizontal isn't, it should probably split the scroll event into two:
One with only the "unnaturalized" vertical scrolling that and the property isDirectionInvertedFromDevice set to false, and one with the horizontal scrolling where everything is unchanged.

I'd try to fix it myself, but I've got a bit of a weird development environment and I can't really build the project.

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

1 participant